From 95217cc09f41673ae05bffcd053d1daa157d3e30 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 4 Feb 2015 14:45:43 -0800 Subject: [PATCH] Backed out changeset a21eb15bbf08 --- b2g/components/DirectoryProvider.js | 2 +- dom/system/gonk/VolumeManagerLog.h | 2 +- dom/system/gonk/nsVolumeService.cpp | 2 -- toolkit/crashreporter/CrashSubmit.jsm | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/b2g/components/DirectoryProvider.js b/b2g/components/DirectoryProvider.js index 58eb8b4c4fdd..3e9f81eca680 100644 --- a/b2g/components/DirectoryProvider.js +++ b/b2g/components/DirectoryProvider.js @@ -227,7 +227,7 @@ DirectoryProvider.prototype = { // subdir doesn't exist, and the parent is writable, so try to // create it. This can fail if a file named updates exists. try { - dir.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt('0770', 8)); + dir.create(Ci.nsIFile.DIRECTORY_TYPE, 0770); } catch (e) { // The create failed for some reason. We can't use it. log("Error: " + dir.path + " unable to create directory"); diff --git a/dom/system/gonk/VolumeManagerLog.h b/dom/system/gonk/VolumeManagerLog.h index 373a3575927a..793f4889c9cd 100644 --- a/dom/system/gonk/VolumeManagerLog.h +++ b/dom/system/gonk/VolumeManagerLog.h @@ -6,7 +6,7 @@ #define mozilla_system_volumemanagerlog_h__ #undef USE_DEBUG -#define USE_DEBUG 1 +#define USE_DEBUG 0 #if !defined(VOLUME_MANAGER_LOG_TAG) #define VOLUME_MANAGER_LOG_TAG "VolumeManager" diff --git a/dom/system/gonk/nsVolumeService.cpp b/dom/system/gonk/nsVolumeService.cpp index 64af019f9d62..a4858d674337 100644 --- a/dom/system/gonk/nsVolumeService.cpp +++ b/dom/system/gonk/nsVolumeService.cpp @@ -268,7 +268,6 @@ nsVolumeService::GetVolumesForIPC(nsTArray* aResult) volInfo->isUnmounting() = vol->mIsUnmounting; volInfo->isRemovable() = vol->mIsRemovable; volInfo->isHotSwappable() = vol->mIsHotSwappable; - DBG("GetVolumesForIPC: adding '%s'", vol->NameStr().get()); } } @@ -296,7 +295,6 @@ nsVolumeService::RecvVolumesFromParent(const nsTArray& aVolumes) volInfo.isUnmounting(), volInfo.isRemovable(), volInfo.isHotSwappable()); - DBG("RecvVolumesFromParent: got '%s'", vol->NameStr().get()); UpdateVolume(vol, false); } } diff --git a/toolkit/crashreporter/CrashSubmit.jsm b/toolkit/crashreporter/CrashSubmit.jsm index 932f2ec9664d..fe3a6d3cd3f9 100644 --- a/toolkit/crashreporter/CrashSubmit.jsm +++ b/toolkit/crashreporter/CrashSubmit.jsm @@ -86,7 +86,7 @@ function getDir(name) { function writeFile(dirName, fileName, data) { let path = getDir(dirName); if (!path.exists()) - path.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt('0700', 8)); + path.create(Ci.nsIFile.DIRECTORY_TYPE, 0700); path.append(fileName); var fs = Cc["@mozilla.org/network/file-output-stream;1"]. createInstance(Ci.nsIFileOutputStream);