Bug 807316 - Import PrivateBrowsingUtils.jsm lazily on Android; r=bnicholson

This commit is contained in:
Ehsan Akhgari 2012-11-08 15:23:19 -05:00
parent 5d755edd99
commit 084e31b05f

View File

@ -14,7 +14,6 @@ Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/AddonManager.jsm");
Cu.import("resource://gre/modules/FileUtils.jsm");
Cu.import("resource://gre/modules/JNI.jsm");
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
#ifdef ACCESSIBILITY
Cu.import("resource://gre/modules/accessibility/AccessFu.jsm");
@ -43,6 +42,11 @@ XPCOMUtils.defineLazyGetter(this, "SafeBrowsing", function() {
});
#endif
XPCOMUtils.defineLazyGetter(this, "PrivateBrowsingUtils", function() {
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
return PrivateBrowsingUtils;
});
// Lazily-loaded browser scripts:
[
["HelperApps", "chrome://browser/content/HelperApps.js"],