Bug 1155851 - Gonk incorrectly uses the app.update.service.enabled preference. r=marshall

This commit is contained in:
Robert Strong 2015-04-21 17:47:57 -07:00
parent 87d69c9432
commit 7167becd52

View File

@ -660,11 +660,9 @@ function getCanStageUpdates() {
// For Gonk, the updater will remount the /system partition to move staged
// files into place.
if (AppConstants.platform == "gonk") {
if (getPref("getBoolPref", PREF_APP_UPDATE_SERVICE_ENABLED, false)) {
LOG("getCanStageUpdates - able to stage updates because this is gonk");
return true;
}
}
if (!hasUpdateMutex()) {
LOG("getCanStageUpdates - unable to apply updates because another " +