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

Unified Diff: chrome/browser/resources/hotword/state_manager.js

Issue 1011813006: Make availability of hotword hardware known to hotword component extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 | « chrome/browser/resources/hotword/nacl_manager.js ('k') | chrome/browser/search/hotword_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword/state_manager.js
diff --git a/chrome/browser/resources/hotword/state_manager.js b/chrome/browser/resources/hotword/state_manager.js
index 9a42b1b63b75298ec5f32806f1930c118c511e87..ebe68355d80815250acd0df74ba2eaa7c479bb31 100644
--- a/chrome/browser/resources/hotword/state_manager.js
+++ b/chrome/browser/resources/hotword/state_manager.js
@@ -301,7 +301,10 @@ cr.define('hotword', function() {
if (!this.pluginManager_) {
this.state_ = State_.STARTING;
- this.pluginManager_ = new hotword.NaClManager(this.loggingEnabled_);
+ var isHotwordStream = this.isAlwaysOnEnabled() &&
+ this.hotwordStatus_.hotwordHardwareAvailable;
+ this.pluginManager_ = new hotword.NaClManager(this.loggingEnabled_,
+ isHotwordStream);
this.pluginManager_.addEventListener(hotword.constants.Event.READY,
this.onReady_.bind(this));
this.pluginManager_.addEventListener(hotword.constants.Event.ERROR,
« no previous file with comments | « chrome/browser/resources/hotword/nacl_manager.js ('k') | chrome/browser/search/hotword_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698