Bug 1492095 - temporarily remove use of nsAppStartupNotifier after removal of its XPCOM interface in bug 1491741. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Tue, 18 Sep 2018 14:09:21 +0200
changeset 33180 96176520c89516bcb48c6ac959dfcf89edd07dc7
parent 33179 cfc817da711194fab8fd0c4aaa4c26fbc7a81f30
child 33181 834b5f6d29c4965a9ee575635b9ef3c860efa7c5
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersbustage-fix
bugs1492095, 1491741
Bug 1492095 - temporarily remove use of nsAppStartupNotifier after removal of its XPCOM interface in bug 1491741. rs=bustage-fix DONTBUILD
calendar/base/src/calAlarmService.js
--- a/calendar/base/src/calAlarmService.js
+++ b/calendar/base/src/calAlarmService.js
@@ -224,19 +224,22 @@ calAlarmService.prototype = {
         }
 
         Services.obs.addObserver(this, "profile-after-change");
         Services.obs.addObserver(this, "xpcom-shutdown");
         Services.obs.addObserver(this, "wake_notification");
 
         /* Tell people that we're alive so they can start monitoring alarms.
          */
+        /*
+         * Temporarily removed, see bug 1492095,
         let notifier = Components.classes["@mozilla.org/embedcomp/appstartup-notifier;1"]
                                  .getService(Components.interfaces.nsIObserver);
         notifier.observe(null, "alarm-service-startup", null);
+         */
 
         cal.getCalendarManager().addObserver(this.calendarManagerObserver);
 
         for (let calendar of cal.getCalendarManager().getCalendars({})) {
             this.observeCalendar(calendar);
         }
 
         /* set up a timer to update alarms every N hours */
@@ -277,19 +280,22 @@ calAlarmService.prototype = {
     },
 
     shutdown: function() {
         if (!this.mStarted) {
             return;
         }
 
         /* tell people that we're no longer running */
+        /*
+         * Temporarily removed, see bug 1492095,
         let notifier = Components.classes["@mozilla.org/embedcomp/appstartup-notifier;1"]
                                  .getService(Components.interfaces.nsIObserver);
         notifier.observe(null, "alarm-service-shutdown", null);
+         */
 
         if (this.mUpdateTimer) {
             this.mUpdateTimer.cancel();
             this.mUpdateTimer = null;
         }
 
         let calmgr = cal.getCalendarManager();
         calmgr.removeObserver(this.calendarManagerObserver);