Index: chrome/browser/ui/app_list/start_page_service.cc |
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc |
index d389dc2be042439244ea943d757500720c3deb4e..f02376be9db705621e5e1548b9e0ef5d198cd66c 100644 |
--- a/chrome/browser/ui/app_list/start_page_service.cc |
+++ b/chrome/browser/ui/app_list/start_page_service.cc |
@@ -352,14 +352,15 @@ void StartPageService::AppListShown() { |
LoadContents(); |
} else if (contents_->IsCrashed()) { |
LoadStartPageURL(); |
- } else if (contents_->GetWebUI() && |
- !HotwordService::IsExperimentalHotwordingEnabled()) { |
- // If experimental hotwording is enabled, don't call onAppListShown. |
- // onAppListShown() initializes the web speech API, which is not used with |
+ } else if (contents_->GetWebUI()) { |
+ // If experimental hotwording is enabled, don't initialize the web speech |
+ // API, which is not used with |
// experimental hotwording. |
contents_->GetWebUI()->CallJavascriptFunction( |
"appList.startPage.onAppListShown", |
- base::FundamentalValue(HotwordEnabled())); |
+ base::FundamentalValue(HotwordEnabled()), |
+ base::FundamentalValue( |
+ !HotwordService::IsExperimentalHotwordingEnabled())); |
} |
#if defined(OS_CHROMEOS) |