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

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

Issue 600523004: Support hotwording on google.com and the new tab page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup for review. Created 6 years, 3 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
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() {});
});
});

Powered by Google App Engine
This is Rietveld 408576698