зеркало из https://github.com/mozilla/pjs.git
bug 530889 - Shutdown FastStart service r=crowder a=blocking-fennec
--HG-- extra : rebase_source : 5f092dbfdd748f6a5d19a7afc24044a9fd96ef0c
This commit is contained in:
Родитель
0d67db2ea6
Коммит
663ea8883a
|
@ -154,6 +154,15 @@ nsFastStartupCLH.prototype = {
|
||||||
//
|
//
|
||||||
handle: function fs_handle(cmdLine) {
|
handle: function fs_handle(cmdLine) {
|
||||||
// the rest of this only handles -faststart here
|
// the rest of this only handles -faststart here
|
||||||
|
|
||||||
|
if (cmdLine.handleFlag("shutdown-faststart", false)) {
|
||||||
|
cmdLine.preventDefault = true;
|
||||||
|
// Shutdown this service
|
||||||
|
let appstartup = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup);
|
||||||
|
appstartup.quit(Ci.nsIAppStartup.eAttemptQuit);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (cmdLine.handleFlag("faststart-hidden", false) || (getenv(RESTART_ENV_VAR) == "1"))
|
if (cmdLine.handleFlag("faststart-hidden", false) || (getenv(RESTART_ENV_VAR) == "1"))
|
||||||
cmdLine.preventDefault = true;
|
cmdLine.preventDefault = true;
|
||||||
|
|
||||||
|
@ -184,7 +193,8 @@ nsFastStartupCLH.prototype = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
helpInfo: " -faststart-hidden\n",
|
helpInfo: " -faststart-hidden Start the FastStart service\n" +
|
||||||
|
" -shutdown-faststart Shutdown the FastStart service\n",
|
||||||
|
|
||||||
// QI
|
// QI
|
||||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче