Chromium Code Reviews| Index: chrome/browser/resources/hotword/nacl_manager.js |
| diff --git a/chrome/browser/resources/hotword/nacl_manager.js b/chrome/browser/resources/hotword/nacl_manager.js |
| index 4b10183b5eb519df1ee77745c7f229515772b0bb..e4279284ad1b48611610b8300bd2b49bf5bf489d 100644 |
| --- a/chrome/browser/resources/hotword/nacl_manager.js |
| +++ b/chrome/browser/resources/hotword/nacl_manager.js |
| @@ -460,8 +460,13 @@ NaClManager.prototype.handleModelLoaded_ = function() { |
| return; |
| } |
| this.sendDataToPlugin_(this.stream_.getAudioTracks()[0]); |
| - this.waitForMessage_(hotword.constants.TimeoutMs.LONG, |
| - hotword.constants.NaClPlugin.MS_CONFIGURED); |
| + // The plugin will send a MS_CONFIGURED, but don't set a timeout waiting for |
| + // it. After the recent MediaStreamAudioTrack refactoring, the behavior of |
|
Matt Giuca
2016/09/08 03:50:45
The code should describe what it is *now*, not ref
|
| + // MediaStreamAudioTrack::Configure() changed where it remains pending until |
| + // the first audio buffer is received. When the audio source is a DSP for |
| + // always-on detection, no audio sample is sent until the DSP detects a |
| + // potential hotword trigger. Thus, Configure may remain pending indefinitely. |
| + // See crbug.com/616203 for more info. |
| }; |
| /** |