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

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

Issue 467113004: Adds a skeleton component app for Always-On Hotwording opt-in flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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/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();
« no previous file with comments | « chrome/browser/extensions/component_loader.h ('k') | chrome/browser/resources/component_extension_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698