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

Unified Diff: chrome/browser/resources/app_list/start_page.js

Issue 158143002: Fine tuned availability of hotword plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 10 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/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
« no previous file with comments | « chrome/browser/resources/app_list/speech_manager.js ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698