Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1593)

Unified Diff: chrome/browser/extensions/external_component_loader.cc

Issue 1201163002: Remove hotword installation code at compile time if hotwording disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/search/hotword_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/external_component_loader.cc
diff --git a/chrome/browser/extensions/external_component_loader.cc b/chrome/browser/extensions/external_component_loader.cc
index 76e7c5f3fa50b90a21e484267e754fc132ae3c4e..3bfda245dc6183dbbc6fc8f3ba4a2c08b26fd14e 100644
--- a/chrome/browser/extensions/external_component_loader.cc
+++ b/chrome/browser/extensions/external_component_loader.cc
@@ -41,8 +41,10 @@ void ExternalComponentLoader::StartLoading() {
prefs_.reset(new base::DictionaryValue());
AddExternalExtension(extension_misc::kInAppPaymentsSupportAppId);
+#if defined(ENABLE_HOTWORDING)
if (HotwordServiceFactory::IsHotwordAllowed(profile_))
AddExternalExtension(extension_misc::kHotwordSharedModuleId);
+#endif // defined(ENABLE_HOTWORDING)
#if defined(OS_CHROMEOS)
{
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/search/hotword_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698