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

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

Issue 2599923002: Run tools/clang-format-js on chrome/browser/resources/hotword/ (Closed)
Patch Set: no dep Created 3 years, 12 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/audio_client.js ('k') | chrome/browser/resources/hotword/constants.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword/base_session_manager.js
diff --git a/chrome/browser/resources/hotword/base_session_manager.js b/chrome/browser/resources/hotword/base_session_manager.js
index d1ee2bfbff9b975bcebc366684b01a28dbadfa47..6891199d9a53ab4d2e0b60476963cc5fe0cc66f3 100644
--- a/chrome/browser/resources/hotword/base_session_manager.js
+++ b/chrome/browser/resources/hotword/base_session_manager.js
@@ -56,8 +56,7 @@ cr.define('hotword', function() {
* Called when the hotwording session is stopped.
* @protected
*/
- onSessionStop: function() {
- },
+ onSessionStop: function() {},
/**
* Starts a launcher hotwording session.
@@ -65,13 +64,9 @@ cr.define('hotword', function() {
* recognizer in.
*/
startSession: function(opt_mode) {
- this.stateManager.startSession(
- this.sessionSource_,
- function() {
- chrome.hotwordPrivate.setHotwordSessionState(true, function() {});
- },
- this.handleHotwordTrigger.bind(this),
- opt_mode);
+ this.stateManager.startSession(this.sessionSource_, function() {
+ chrome.hotwordPrivate.setHotwordSessionState(true, function() {});
+ }, this.handleHotwordTrigger.bind(this), opt_mode);
},
/**
@@ -90,9 +85,8 @@ cr.define('hotword', function() {
*/
handleHotwordTrigger: function(log) {
hotword.debug('Hotword triggered: ' + this.sessionSource_, log);
- chrome.hotwordPrivate.notifyHotwordRecognition('search',
- log,
- function() {});
+ chrome.hotwordPrivate.notifyHotwordRecognition(
+ 'search', log, function() {});
},
/**
@@ -154,7 +148,5 @@ cr.define('hotword', function() {
}
};
- return {
- BaseSessionManager: BaseSessionManager
- };
+ return {BaseSessionManager: BaseSessionManager};
});
« no previous file with comments | « chrome/browser/resources/hotword/audio_client.js ('k') | chrome/browser/resources/hotword/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698