43 const Cc = Components.classes;
44 const Ci = Components.interfaces;
45 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
50 handle:
function nsSetDefault_handle(aCmdline) {
51 if (aCmdline.handleFlag(
"setDefaultBrowser",
false)) {
52 var shell =
Cc[
"@mozilla.org/browser/shell-service;1"].
54 shell.setDefaultBrowser(
true,
true);
58 helpInfo:
" -setDefaultBrowser Set this app as the default browser.\n",
61 contractID:
"@mozilla.org/browser/default-browser-clh;1",
62 classID: Components.ID(
"{F57899D0-4E2C-4ac6-9E29-50C736103B0C}"),
65 category:
"command-line-handler",
66 entry:
"m-setdefaultbrowser"
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
function handle(request, response)
getService(Ci.sbIFaceplateManager)
sbDeviceFirmwareAutoCheckForUpdate prototype classID
sbWindowsAutoPlayServiceCfg _xpcom_categories
function nsSetDefaultBrowser()