| Index: chrome/browser/ui/webui/app_list/start_page_handler.cc
|
| diff --git a/chrome/browser/ui/webui/app_list/start_page_handler.cc b/chrome/browser/ui/webui/app_list/start_page_handler.cc
|
| index 76ebc29041a8c61935a2a53b6b754b2010710315..25fd15972adcefcfe6017ce2b8ed401d9c66da21 100644
|
| --- a/chrome/browser/ui/webui/app_list/start_page_handler.cc
|
| +++ b/chrome/browser/ui/webui/app_list/start_page_handler.cc
|
| @@ -144,7 +144,8 @@ void StartPageHandler::OnHotwordEnabledChanged() {
|
| extensions::ExtensionRegistry::ENABLED);
|
| if (hotword_extension &&
|
| hotword_extension->version()->CompareTo(
|
| - base::Version(kOldHotwordExtensionVersionString)) <= 0) {
|
| + base::Version(kOldHotwordExtensionVersionString)) <= 0 &&
|
| + !HotwordService::IsExperimentalHotwordingEnabled()) {
|
| StartPageService* service = StartPageService::Get(profile);
|
| web_ui()->CallJavascriptFunction(
|
| "appList.startPage.setHotwordEnabled",
|
| @@ -193,9 +194,13 @@ void StartPageHandler::HandleInitialize(const base::ListValue* args) {
|
| #endif
|
|
|
| if (!app_list::switches::IsExperimentalAppListEnabled()) {
|
| + // If experimental hotwording is enabled, don't enable hotwording in the
|
| + // start page, since the hotword extension is taking care of this.
|
| + bool hotword_enabled = service->HotwordEnabled() &&
|
| + !HotwordService::IsExperimentalHotwordingEnabled();
|
| web_ui()->CallJavascriptFunction(
|
| "appList.startPage.onAppListShown",
|
| - base::FundamentalValue(service->HotwordEnabled()));
|
| + base::FundamentalValue(hotword_enabled));
|
| }
|
| }
|
|
|
|
|