Index: chrome/browser/extensions/component_loader.cc |
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc |
index 6af2018daed17d805145bff00027f6dfbee95b37..6c6ea4bfa6df7c9a71a7d14f56b3636290cb1e85 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(); |
benwells
2014/08/25 03:21:58
I think tihs should be moved down to AddDefaultCom
kcarattini
2014/08/25 04:04:25
Done.
|
} |
AddKeyboardApp(); |