Bug 1274037 - Rename the gecko.mstone and gecko.buildID prefs to dom.apps.lastUpdate.* r=fabrice
authorL. David Baron <dbaron@dbaron.org>
Fri, 20 May 2016 19:57:32 -0700
changeset 298328 03f0242deea7a19d40f16fda32830a80584fbae1
parent 298327 f81a68cdd9f192c2f85ac0aca1a6d7be892a0335
child 298329 557c5dbd25a169664766123f8c3f6a75a8e392f3
push id30281
push usercbook@mozilla.com
push dateTue, 24 May 2016 12:54:02 +0000
treeherdermozilla-central@829d3be6ba64 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs1274037
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1274037 - Rename the gecko.mstone and gecko.buildID prefs to dom.apps.lastUpdate.* r=fabrice MozReview-Commit-ID: AkFkFhyUNrX
dom/apps/AppsUtils.jsm
--- a/dom/apps/AppsUtils.jsm
+++ b/dom/apps/AppsUtils.jsm
@@ -613,30 +613,30 @@ this.AppsUtils = {
   },
 
   /**
    * Determines if an update or a factory reset occured.
    */
   isFirstRun: function isFirstRun(aPrefBranch) {
     let savedmstone = null;
     try {
-      savedmstone = aPrefBranch.getCharPref("gecko.mstone");
+      savedmstone = aPrefBranch.getCharPref("dom.apps.lastUpdate.mstone");
     } catch (e) {}
 
     let mstone = Services.appinfo.platformVersion;
 
     let savedBuildID = null;
     try {
-      savedBuildID = aPrefBranch.getCharPref("gecko.buildID");
+      savedBuildID = aPrefBranch.getCharPref("dom.apps.lastUpdate.buildID");
     } catch (e) {}
 
     let buildID = Services.appinfo.platformBuildID;
 
-    aPrefBranch.setCharPref("gecko.mstone", mstone);
-    aPrefBranch.setCharPref("gecko.buildID", buildID);
+    aPrefBranch.setCharPref("dom.apps.lastUpdate.mstone", mstone);
+    aPrefBranch.setCharPref("dom.apps.lastUpdate.buildID", buildID);
 
     if ((mstone != savedmstone) || (buildID != savedBuildID)) {
       aPrefBranch.setBoolPref("dom.apps.reset-permissions", false);
       return true;
     } else {
       return false;
     }
   },