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

Unified Diff: chrome/browser/resources/options/hotword_confirm_dialog.js

Issue 560563004: Compile chrome://settings, part 5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_make_public
Patch Set: fixed assert errors 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/options/hotword_confirm_dialog.js
diff --git a/chrome/browser/resources/options/hotword_confirm_dialog.js b/chrome/browser/resources/options/hotword_confirm_dialog.js
index 3d84366383ec0c5d7c103de0871439779d54d0f9..a14d1fe929686ea4ee905e16fcdc9754ebe3a5f6 100644
--- a/chrome/browser/resources/options/hotword_confirm_dialog.js
+++ b/chrome/browser/resources/options/hotword_confirm_dialog.js
@@ -19,13 +19,13 @@ cr.define('options', function() {
*/
function HotwordConfirmDialog() {
ConfirmDialog.call(this,
- 'hotwordConfim', // name
- loadTimeData.getString('hotwordConfirmOverlayTabTitle'),
- 'hotword-confirm-overlay', // pageDivName
- $('hotword-confirm-ok'), // okButton
- $('hotword-confirm-cancel'), // cancelButton
- $('hotword-search-enable')['pref'], // pref
- $('hotword-search-enable')['metric']); // metric
+ 'hotwordConfim', // name
+ loadTimeData.getString('hotwordConfirmOverlayTabTitle'),
+ 'hotword-confirm-overlay', // pageDivName
+ assertInstanceof($('hotword-confirm-ok'), HTMLButtonElement),
+ assertInstanceof($('hotword-confirm-cancel'), HTMLButtonElement),
+ $('hotword-search-enable')['pref'], // pref
+ $('hotword-search-enable')['metric']); // metric
this.indicator = $('hotword-search-setting-indicator');
}

Powered by Google App Engine
This is Rietveld 408576698