Bug 489795: Get AlertsService override working again, r=gavin
authorMark Finkle <mfinkle@mozilla.com>
Fri, 24 Apr 2009 08:45:50 -0400
changeset 65183 dcc5c1a2f90829cc914465a944e75c31b3f8447c
parent 65182 f34bbc4658489b1648a5ddbc90808f44d7997ba9
child 65184 d72732df79dec183ac346bee102a2abfcac65ee2
push id1
push userclegnitto@mozilla.com
push dateTue, 12 Apr 2011 01:19:02 +0000
treeherdermozilla-aurora@0cfe6840e0a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs489795
Bug 489795: Get AlertsService override working again, r=gavin
mobile/components/alertsService.js
--- a/mobile/components/alertsService.js
+++ b/mobile/components/alertsService.js
@@ -41,18 +41,18 @@ Components.utils.import("resource://gre/
 
 // -----------------------------------------------------------------------
 // Alerts Service
 // -----------------------------------------------------------------------
 
 function AlertsService() { }
 
 AlertsService.prototype = {
-  classDescription: "Alerts Service",
-  contractID: "@mozilla.org/alerts-service;1",
+  classDescription: "Mobile Alerts Service",
+  contractID: "@mozilla.org/system-alerts-service;1",
   classID: Components.ID("{fe33c107-82a4-41d6-8c64-5353267e04c9}"),
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIAlertsService]),
 
   showAlertNotification: function(aImageUrl, aTitle, aText, aTextClickable, aCookie, aAlertListener, aName) {
     let wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
     let browser = wm.getMostRecentWindow("navigator:browser");
     browser.AlertsHelper.showAlertNotification(aImageUrl, aTitle, aText, aTextClickable, aCookie, aAlertListener);
   }