зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset a21eb15bbf08
This commit is contained in:
Родитель
91bfb094bf
Коммит
95217cc09f
|
@ -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");
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -268,7 +268,6 @@ nsVolumeService::GetVolumesForIPC(nsTArray<VolumeInfo>* 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<VolumeInfo>& aVolumes)
|
|||
volInfo.isUnmounting(),
|
||||
volInfo.isRemovable(),
|
||||
volInfo.isHotSwappable());
|
||||
DBG("RecvVolumesFromParent: got '%s'", vol->NameStr().get());
|
||||
UpdateVolume(vol, false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче