Bug 874319 - Add missing references to PlacesUtils to CustomizableWidgets. r=gijs,mconley

--HG--
extra : rebase_source : a18d5370706bdb46afcee416ebb4a7fe0fdbcbc9
This commit is contained in:
Jared Wein 2013-05-21 10:27:08 -04:00
parent 0f128baf67
commit 300a5597f3
2 changed files with 19 additions and 2 deletions

View File

@ -11,8 +11,6 @@ const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/NetUtil.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
"resource://gre/modules/PlacesUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "CustomizableWidgets",
"resource:///modules/CustomizableWidgets.jsm");

View File

@ -8,6 +8,25 @@ const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
this.EXPORTED_SYMBOLS = ["CustomizableWidgets"];
Cu.import("resource:///modules/CustomizableUI.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
"resource://gre/modules/PlacesUtils.jsm");
const kNSXUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
const kPrefCustomizationDebug = "browser.uiCustomization.debug";
let gDebug = false;
try {
gDebug = Services.prefs.getBoolPref(kPrefCustomizationDebug);
} catch (e) {}
function LOG(aMsg) {
if (gDebug) {
Services.console.logStringMessage("[CustomizableWidgets] " + aMsg);
}
}
function ERROR(aMsg) Cu.reportError("[CustomizableWidgets] " + aMsg);
const CustomizableWidgets = [{
id: "history-panelmenu",