Bug 1230373 - Enable mozilla/use-services for browser/components/ r=mossop
MozReview-Commit-ID: 9m9iss3jUJJ
This commit is contained in:
@@ -254,7 +254,6 @@ function confirmRestartPrompt(aRestartToEnable, aDefaultButtonIndex,
|
||||
"featureDisableRequiresRestart",
|
||||
[brandName]);
|
||||
let title = bundle.getFormattedString("shouldRestartTitle", [brandName]);
|
||||
let prompts = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
|
||||
|
||||
// Set up the first (index 0) button:
|
||||
let button0Text = bundle.getFormattedString("okToRestartButton", [brandName]);
|
||||
@@ -295,9 +294,9 @@ function confirmRestartPrompt(aRestartToEnable, aDefaultButtonIndex,
|
||||
break;
|
||||
}
|
||||
|
||||
let buttonIndex = prompts.confirmEx(window, title, msg, buttonFlags,
|
||||
button0Text, button1Text, button2Text,
|
||||
null, {});
|
||||
let buttonIndex = Services.prompt.confirmEx(window, title, msg, buttonFlags,
|
||||
button0Text, button1Text, button2Text,
|
||||
null, {});
|
||||
|
||||
// If we have the second confirmation dialog for restart, see if the user
|
||||
// cancels out at that point.
|
||||
|
||||
Reference in New Issue
Block a user