Index: chrome/browser/extensions/component_loader.cc |
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc |
index ec60802104249ce97a4f7f81436f4119d4924d87..065027cd5e4a7db9fcbba2e09cfba9b1619afd9a 100644 |
--- a/chrome/browser/extensions/component_loader.cc |
+++ b/chrome/browser/extensions/component_loader.cc |
@@ -301,6 +301,14 @@ void ComponentLoader::AddHangoutServicesExtension() { |
#endif |
} |
+void ComponentLoader::AddHotwordAudioVerificationApp() { |
+ CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ if (command_line->HasSwitch(switches::kEnableExperimentalHotwording)) { |
+ Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, |
+ base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); |
+ } |
+} |
+ |
void ComponentLoader::AddHotwordHelperExtension() { |
if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) { |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
@@ -458,6 +466,7 @@ void ComponentLoader::AddDefaultComponentExtensions( |
if (!skip_session_components) { |
AddWebStoreApp(); |
AddChromeApp(); |
+ AddHotwordAudioVerificationApp(); |
} |
AddKeyboardApp(); |