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

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: Same fix for GN builds. Created 5 years, 6 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
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 42ec025ec6c1bdbfb53421ff96550bf30a43591f..0f251cc248497d18c02eb341dd39986aab984d9c 100644
--- a/chrome/browser/extensions/external_component_loader.cc
+++ b/chrome/browser/extensions/external_component_loader.cc
@@ -54,8 +54,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)
{
std::string extension_id;
« build/config/BUILD.gn ('K') | « chrome/browser/BUILD.gn ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698