Index: chrome/browser/resources/hotword/manager.js |
diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js |
index dfe4c7ef860388f86c02b934f2a01e6a28ff7ff0..e7731f1aa0a70965258c005b5d4c9d436cdcdab4 100644 |
--- a/chrome/browser/resources/hotword/manager.js |
+++ b/chrome/browser/resources/hotword/manager.js |
@@ -19,6 +19,7 @@ |
// Hotwording state. |
var stateManager = new hotword.StateManager(); |
+ var pageAudioManager = new hotword.PageAudioManager(stateManager); |
// Detect Chrome startup and make sure we get a chance to run. |
chrome.runtime.onStartup.addListener(function() { |
@@ -34,7 +35,7 @@ |
// is installed. |
chrome.management.onInstalled.addListener(function(info) { |
if (info.id == hotword.constants.SHARED_MODULE_ID) |
- chrome.runtime.reload(); |
+ chrome.runtime.reload(); |
}); |
// Detect when a session has requested to be started and stopped. |
@@ -47,6 +48,10 @@ |
hotword.constants.SessionSource.LAUNCHER, |
function() { |
chrome.hotwordPrivate.setHotwordSessionState(true, function() {}); |
+ }, |
+ function() { |
+ chrome.hotwordPrivate.notifyHotwordRecognition('search', |
rpetterson
2014/09/25 02:23:37
Based on hotword_private_api.cc, the type -- 'sear
Anand Mistry (off Chromium)
2014/09/25 05:23:42
Honestly, no idea. I have no plans for it. It alre
rpetterson
2014/09/30 01:57:30
I think Mukai originally wrote it . . . looking mo
|
+ function() {}); |
}); |
}); |