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

Unified Diff: chrome/browser/resources/app_list/plugin_manager.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
« no previous file with comments | « no previous file | chrome/browser/resources/app_list/speech_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/app_list/plugin_manager.js
diff --git a/chrome/browser/resources/app_list/plugin_manager.js b/chrome/browser/resources/app_list/plugin_manager.js
index b6407b6557daf66f59375d60fdf62e2da9124ad1..5ebcf9a163d8ac941e6dd8c3e7f5e9e5145ceb33 100644
--- a/chrome/browser/resources/app_list/plugin_manager.js
+++ b/chrome/browser/resources/app_list/plugin_manager.js
@@ -39,7 +39,7 @@ cr.define('speech', function() {
/**
* @constructor
*/
- function PluginManager(onReady, onRecognized) {
+ function PluginManager(prefix, onReady, onRecognized) {
this.state = PluginState.UNINITIALIZED;
this.onReady_ = onReady;
this.onRecognized_ = onRecognized;
@@ -50,7 +50,7 @@ cr.define('speech', function() {
recognizer = document.createElement('EMBED');
recognizer.id = 'recognizer';
recognizer.type = 'application/x-nacl';
- recognizer.src = 'chrome://app-list/greconacl.nmf';
+ recognizer.src = 'chrome://app-list/hotword_' + prefix + '.nmf';
recognizer.width = '1';
recognizer.height = '1';
document.body.appendChild(recognizer);
« no previous file with comments | « no previous file | chrome/browser/resources/app_list/speech_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698