Bug 805844: Support update interval configuration via settings in B2G. r=fabrice
authorMarshall Culpepper <marshall@mozilla.com>
Wed, 07 Nov 2012 16:05:55 -0800
changeset 112639 d941ad65a09ed6300940f175892a7845f518ad0e
parent 112638 b9ec1725a5e2b0e6f58b5081c681d77cad6b1815
child 112640 f647e3c9a06c95a0e66bce15f72b44578c586b31
push id23833
push useremorley@mozilla.com
push dateThu, 08 Nov 2012 10:20:57 +0000
treeherdermozilla-central@e0d7b394462b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs805844
milestone19.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 805844: Support update interval configuration via settings in B2G. r=fabrice
b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -224,8 +224,12 @@ SettingsListener.observe('app.reportCras
     Services.prefs.setBoolPref('app.reportCrashes', true);
   } else if (value == 'never') {
     Services.prefs.setBoolPref('app.reportCrashes', false);
   } else {
     Services.prefs.clearUserPref('app.reportCrashes');
   }
 });
 
+// ================ Updates ================
+SettingsListener.observe('app.update.interval', 86400, function(value) {
+  Services.prefs.setIntPref('app.update.interval', value);
+});