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

Unified Diff: chrome/browser/resources/print_preview/search/destination_list_item.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/search/destination_list_item.js
diff --git a/chrome/browser/resources/print_preview/search/destination_list_item.js b/chrome/browser/resources/print_preview/search/destination_list_item.js
index 9f843ee0288191b2626bbc01bcff4b65a18c8575..151dbb279340fdebf9c47365724bec519e5df318 100644
--- a/chrome/browser/resources/print_preview/search/destination_list_item.js
+++ b/chrome/browser/resources/print_preview/search/destination_list_item.js
@@ -11,11 +11,11 @@ cr.define('print_preview', function() {
* events to.
* @param {!print_preview.Destination} destination Destination data object to
* render.
- * @param {RegExp} query Active filter query.
+ * @param {RegExp=} opt_query Active filter query.
* @constructor
* @extends {print_preview.Component}
*/
- function DestinationListItem(eventTarget, destination, query) {
+ function DestinationListItem(eventTarget, destination, opt_query) {
print_preview.Component.call(this);
/**
@@ -37,7 +37,7 @@ cr.define('print_preview', function() {
* @type {RegExp}
* @private
*/
- this.query_ = query;
+ this.query_ = opt_query || null;
/**
* FedEx terms-of-service widget or {@code null} if this list item does not

Powered by Google App Engine
This is Rietveld 408576698