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

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: More review comments. Created 6 years, 2 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
« no previous file with comments | « chrome/browser/resources/hotword/constants.js ('k') | chrome/browser/resources/hotword/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword/manager.js
diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js
index 0fc364b428fc63630828edd15d145da83c08b4a8..7095fc5967d34b4fd4acdac4b3588e518a378bbc 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() {
@@ -50,6 +51,10 @@
hotword.constants.SessionSource.LAUNCHER,
function() {
chrome.hotwordPrivate.setHotwordSessionState(true, function() {});
+ },
+ function() {
+ chrome.hotwordPrivate.notifyHotwordRecognition('search',
+ function() {});
});
});
« no previous file with comments | « chrome/browser/resources/hotword/constants.js ('k') | chrome/browser/resources/hotword/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698