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

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

Issue 229323003: Modifies handling of hotword NaCl module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 4a1f3937e42a8101d7f9f258bb5ff5c3a40d0f60..00f945402c44137df4bcf041be2fcac1b8ed1b41 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -76,6 +76,14 @@ cr.define('appList.startPage', function() {
}
/**
+ * Sets the architecture of NaCl module to be loaded for hotword.
+ * @param {string} arch The architecture.
+ */
+ function setNaclArch(arch) {
+ speechManager.setNaclArch(arch);
+ }
+
+ /**
* Invoked when the app-list bubble is shown.
*
* @param {boolean} hotwordEnabled Whether the hotword is enabled or not.
@@ -103,6 +111,7 @@ cr.define('appList.startPage', function() {
initialize: initialize,
setRecommendedApps: setRecommendedApps,
setHotwordEnabled: setHotwordEnabled,
+ setNaclArch: setNaclArch,
onAppListShown: onAppListShown,
onAppListHidden: onAppListHidden,
toggleSpeechRecognition: toggleSpeechRecognition
« no previous file with comments | « chrome/browser/resources/app_list/speech_manager.js ('k') | chrome/browser/ui/webui/app_list/start_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698