summaryrefslogtreecommitdiffstats
path: root/mobile/android/chrome
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-05-12 08:18:44 -0500
committertrav90 <travawine@protonmail.ch>2018-05-12 08:18:44 -0500
commit8e08b8cef22be82dfc6f62bf8531ba3da097ef9b (patch)
treeb32807d7bd960560d38bef4e47935d215c8163f6 /mobile/android/chrome
parent5909cef47a4aaf458e41e0d2a46b88972b934dff (diff)
downloadUXP-8e08b8cef22be82dfc6f62bf8531ba3da097ef9b.tar
UXP-8e08b8cef22be82dfc6f62bf8531ba3da097ef9b.tar.gz
UXP-8e08b8cef22be82dfc6f62bf8531ba3da097ef9b.tar.lz
UXP-8e08b8cef22be82dfc6f62bf8531ba3da097ef9b.tar.xz
UXP-8e08b8cef22be82dfc6f62bf8531ba3da097ef9b.zip
Make safebrowsing optional at build time - Part 2: mobile/
Diffstat (limited to 'mobile/android/chrome')
-rw-r--r--mobile/android/chrome/content/browser.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js
index b00e1af15..e2706f4b2 100644
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -57,8 +57,10 @@ XPCOMUtils.defineLazyModuleGetter(this, "LoginManagerParent",
XPCOMUtils.defineLazyModuleGetter(this, "Task", "resource://gre/modules/Task.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "OS", "resource://gre/modules/osfile.jsm");
-XPCOMUtils.defineLazyModuleGetter(this, "SafeBrowsing",
- "resource://gre/modules/SafeBrowsing.jsm");
+#ifdef MOZ_SAFE_BROWSING
+ XPCOMUtils.defineLazyModuleGetter(this, "SafeBrowsing",
+ "resource://gre/modules/SafeBrowsing.jsm");
+#endif
XPCOMUtils.defineLazyModuleGetter(this, "BrowserUtils",
"resource://gre/modules/BrowserUtils.jsm");
@@ -530,8 +532,10 @@ var BrowserApp = {
InitLater(() => Services.search.init(), Services, "search");
InitLater(() => DownloadNotifications.init(), window, "DownloadNotifications");
+#ifdef MOZ_SAFE_BROWSING
// Bug 778855 - Perf regression if we do this here. To be addressed in bug 779008.
InitLater(() => SafeBrowsing.init(), window, "SafeBrowsing");
+#endif
InitLater(() => Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager));
InitLater(() => LoginManagerParent.init(), window, "LoginManagerParent");