| 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..35280bd95acbd69b01b9357c26a3ba62700067b4 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_.hotwordStreamAvailable;
|
| + 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,
|
|
|