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

Unified Diff: chrome/browser/resources/print_preview/common/search_box.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
Patch Set: fix assert 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/print_preview/common/search_box.js
diff --git a/chrome/browser/resources/print_preview/common/search_box.js b/chrome/browser/resources/print_preview/common/search_box.js
index f9efd30264dc6dbeb51b0cfccd51eedc69db3de7..836bddb268aed844d9cbd3de442fdd50e743ad5a 100644
--- a/chrome/browser/resources/print_preview/common/search_box.js
+++ b/chrome/browser/resources/print_preview/common/search_box.js
@@ -66,7 +66,8 @@ cr.define('print_preview', function() {
createDom: function() {
this.setElementInternal(this.cloneTemplateInternal(
'search-box-template'));
- this.input_ = this.getChildElement('.search-box-input');
+ this.input_ = assertInstanceof(this.getChildElement('.search-box-input'),
+ HTMLInputElement);
this.input_.setAttribute('placeholder', this.searchBoxPlaceholderText_);
},
« no previous file with comments | « chrome/browser/resources/print_preview/cloud_print_interface.js ('k') | chrome/browser/resources/print_preview/component.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698