Mercurial > snowl
changeset 345:1bbcbc4d95d2
we don't need the _restartApp method anymore
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Fri, 24 Oct 2008 14:14:12 -0700 |
parents | 62557df25569 |
children | 398b9ca0264b |
files | modules/service.js |
diffstat | 1 files changed, 1 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/service.js Fri Oct 24 14:13:17 2008 -0700 +++ b/modules/service.js Fri Oct 24 14:14:12 2008 -0700 @@ -304,23 +304,8 @@ */ hasMessage: function(aExternalID) { return SnowlDatastore.selectHasMessage(aExternalID); - }, + } - _restartApp: function() { - // Notify all windows that an application quit has been requested. - var os = Cc["@mozilla.org/observer-service;1"]. - getService(Ci.nsIObserverService); - var cancelQuit = Cc["@mozilla.org/supports-PRBool;1"]. - createInstance(Ci.nsISupportsPRBool); - os.notifyObservers(cancelQuit, "quit-application-requested", "restart"); - - // Something aborted the quit process. - if (cancelQuit.data) - return; - - Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup). - quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit); - } }; SnowlService._init();