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

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

Issue 601123002: Add a trivial logging wrapper around console.log, and add some useful log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More review comments. 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
« no previous file with comments | « chrome/browser/resources/hotword/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword/state_manager.js
diff --git a/chrome/browser/resources/hotword/state_manager.js b/chrome/browser/resources/hotword/state_manager.js
index 764d2c099dd202f5b81f9d123d2a4195da6d1373..95821d07b42e197e823b6d9dbedf9922f42986ed 100644
--- a/chrome/browser/resources/hotword/state_manager.js
+++ b/chrome/browser/resources/hotword/state_manager.js
@@ -86,6 +86,7 @@ cr.define('hotword', function() {
* @private
*/
handleStatus_: function(status) {
+ hotword.debug('New hotword status', status);
this.hotwordStatus_ = status;
this.updateStateFromStatus_();
},
@@ -234,6 +235,7 @@ cr.define('hotword', function() {
* @private
*/
onTrigger_: function() {
+ hotword.debug('Hotword triggered!');
assert(this.pluginManager_);
// Detector implicitly stops when the hotword is detected.
this.state_ = State_.STOPPED;
@@ -257,6 +259,7 @@ cr.define('hotword', function() {
* been started successfully.
*/
startSession: function(source, startedCb) {
+ hotword.debug('Starting session for source: ' + source);
this.sessionSource_ = source;
this.sessionStartedCb_ = startedCb;
this.updateStateFromStatus_();
@@ -268,6 +271,7 @@ cr.define('hotword', function() {
* session request.
*/
stopSession: function(source) {
+ hotword.debug('Stopping session for source: ' + source);
this.sessionSource_ = null;
this.sessionStartedCb_ = null;
this.updateStateFromStatus_();
« no previous file with comments | « chrome/browser/resources/hotword/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698