| Index: chrome/browser/resources/app_list/start_page.js
|
| diff --git a/chrome/browser/resources/app_list/start_page.js b/chrome/browser/resources/app_list/start_page.js
|
| index cc7953c07e4c793ebe990e417d497ed9c2d68f28..e1f586e7bc8467736502e633926f58d5f3de6892 100644
|
| --- a/chrome/browser/resources/app_list/start_page.js
|
| +++ b/chrome/browser/resources/app_list/start_page.js
|
| @@ -67,10 +67,12 @@ cr.define('appList.startPage', function() {
|
| }
|
|
|
| /**
|
| - * Invoked when the hotword plugin should be loaded.
|
| + * Invoked when the hotword plugin availability is changed.
|
| + *
|
| + * @param {boolean} enabled Whether the plugin is enabled or not.
|
| */
|
| - function maybeInitializePlugin() {
|
| - speechManager.maybeInitializePlugin();
|
| + function setHotwordEnabled(enabled) {
|
| + speechManager.setHotwordEnabled(enabled);
|
| }
|
|
|
| /**
|
| @@ -98,7 +100,7 @@ cr.define('appList.startPage', function() {
|
| return {
|
| initialize: initialize,
|
| setRecommendedApps: setRecommendedApps,
|
| - maybeInitializePlugin: maybeInitializePlugin,
|
| + setHotwordEnabled: setHotwordEnabled,
|
| onAppListShown: onAppListShown,
|
| onAppListHidden: onAppListHidden,
|
| toggleSpeechRecognition: toggleSpeechRecognition
|
|
|