| Index: chrome/browser/extensions/component_loader.cc
|
| diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
|
| index fb8adeb801438b42d2e5c84da56522812af4e174..c29cad3e217462270cb6e85c6157372ccbf74e9b 100644
|
| --- a/chrome/browser/extensions/component_loader.cc
|
| +++ b/chrome/browser/extensions/component_loader.cc
|
| @@ -304,8 +304,14 @@ void ComponentLoader::AddHangoutServicesExtension() {
|
|
|
| void ComponentLoader::AddHotwordHelperExtension() {
|
| if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) {
|
| - Add(IDR_HOTWORD_HELPER_MANIFEST,
|
| - base::FilePath(FILE_PATH_LITERAL("hotword_helper")));
|
| + CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + if (command_line->HasSwitch(switches::kEnableExperimentalHotwording)) {
|
| + Add(IDR_HOTWORD_MANIFEST,
|
| + base::FilePath(FILE_PATH_LITERAL("hotword")));
|
| + } else {
|
| + Add(IDR_HOTWORD_HELPER_MANIFEST,
|
| + base::FilePath(FILE_PATH_LITERAL("hotword_helper")));
|
| + }
|
| }
|
| }
|
|
|
|
|