| Index: chrome/browser/resources/hotword/manager.js
|
| diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js
|
| index 43a7bb9e976f7b09b0bb783ed892182f64ea8c0d..dfe4c7ef860388f86c02b934f2a01e6a28ff7ff0 100644
|
| --- a/chrome/browser/resources/hotword/manager.js
|
| +++ b/chrome/browser/resources/hotword/manager.js
|
| @@ -43,10 +43,15 @@
|
| // user has enabled always-on hotwording. But for now, always signal the
|
| // start of a hotwording session. This allows this extension to work with
|
| // the app launcher in the current state.
|
| - chrome.hotwordPrivate.setHotwordSessionState(true, function() {});
|
| + stateManager.startSession(
|
| + hotword.constants.SessionSource.LAUNCHER,
|
| + function() {
|
| + chrome.hotwordPrivate.setHotwordSessionState(true, function() {});
|
| + });
|
| });
|
|
|
| chrome.hotwordPrivate.onHotwordSessionStopped.addListener(function() {
|
| + stateManager.stopSession(hotword.constants.SessionSource.LAUNCHER);
|
| chrome.hotwordPrivate.setHotwordSessionState(false, function() {});
|
| });
|
| }());
|
|
|