Enable push startup
authorDoug Turner <doug.turner@gmail.com>
Mon, 20 Apr 2015 05:28:55 +0200
changeset 326792 82cdd687c4adbdd0e0e49bccf2e1b7e3cdf943c2
parent 326791 b6f55841029057a71a028afabe11395f48c80563
child 326793 80e983e67189814f33887c30715babccc927cb4f
push id10169
push userdminor@mozilla.com
push dateThu, 28 Jan 2016 13:10:48 +0000
milestone40.0a1
Enable push startup
dom/push/PushServiceLauncher.js
--- a/dom/push/PushServiceLauncher.js
+++ b/dom/push/PushServiceLauncher.js
@@ -25,20 +25,16 @@ PushServiceLauncher.prototype = {
 
   observe: function observe(subject, topic, data) {
     switch (topic) {
       case "app-startup":
         Services.obs.addObserver(this, "final-ui-startup", true);
         break;
       case "final-ui-startup":
         Services.obs.removeObserver(this, "final-ui-startup");
-        if (!Services.prefs.getBoolPref("dom.push.enabled")) {
-          return;
-        }
-
         let isParent = Cc["@mozilla.org/xre/runtime;1"]
                        .getService(Ci.nsIXULRuntime)
                        .processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT;
 
         if (isParent) {
           Cu.import("resource://gre/modules/PushService.jsm");
           PushService.init();
         }