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

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

Issue 658393003: Fix some straight-forward closure compiler errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 f71755d3cb4f7d28fd375b35afc46a88b3c75654..1486524b11813d95f478180168cad89c43697b3a 100644
--- a/chrome/browser/resources/hotword/state_manager.js
+++ b/chrome/browser/resources/hotword/state_manager.js
@@ -42,7 +42,7 @@ cr.define('hotword', function() {
* on user settings, session requests, and any other factors that play into
* whether or not hotwording should be running.
* @constructor
- * @struct
+ * @class
*/
function StateManager() {
/**
@@ -65,21 +65,22 @@ cr.define('hotword', function() {
/**
* Currently active hotwording sessions.
- * @private {!Array.<hotword.Session_>}
+ * @private {!Array.<Session_>}
*/
this.sessions_ = [];
/**
* Event that fires when the hotwording status has changed.
- * @type {!chrome.Event}
+ * @type {!ChromeEvent}
*/
this.onStatusChanged = new chrome.Event();
/**
* Hotword trigger audio notification... a.k.a The Chime (tm).
- * @private {!Audio}
+ * @private {!HTMLAudioElement}
*/
- this.chime_ = document.createElement('audio');
+ this.chime_ =
+ /** @type {!HTMLAudioElement} */(document.createElement('audio'));
// Get the initial status.
chrome.hotwordPrivate.getStatus(this.handleStatus_.bind(this));

Powered by Google App Engine
This is Rietveld 408576698