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

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 cf77436799a70373c0dfa8b451fb1acedd73435e..16a4aeb980c196a800e3b64d9c64ecd9a6dc02fc 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();
@@ -510,6 +518,7 @@ void ComponentLoader::AddDefaultComponentExtensionsWithBackgroundPages(
AddGalleryExtension();
AddHangoutServicesExtension();
+ AddHotwordAudioVerificationApp();
AddHotwordHelperExtension();
AddImageLoaderExtension();
« 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