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

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

Issue 575333002: Compile print_preview, part 2: reduce down to 260 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview
Patch Set: revert movement of enums: now handle in compiler pass 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 | « no previous file | chrome/browser/resources/print_preview/common/search_bubble.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 723174b74982fea97aa2c0643ae543c85b28d9a3..f9efd30264dc6dbeb51b0cfccd51eedc69db3de7 100644
--- a/chrome/browser/resources/print_preview/common/search_box.js
+++ b/chrome/browser/resources/print_preview/common/search_box.js
@@ -51,7 +51,7 @@ cr.define('print_preview', function() {
SearchBox.prototype = {
__proto__: print_preview.Component.prototype,
- /** @param {string} query New query to set the search box's query to. */
+ /** @param {?string} query New query to set the search box's query to. */
setQuery: function(query) {
query = query || '';
this.input_.value = query.trim();
@@ -73,7 +73,8 @@ cr.define('print_preview', function() {
/** @override */
enterDocument: function() {
print_preview.Component.prototype.enterDocument.call(this);
- this.tracker.add(this.input_, 'input', this.onInputInput_.bind(this));
+ this.tracker.add(assert(this.input_), 'input',
+ this.onInputInput_.bind(this));
},
/** @override */
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/common/search_bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698