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

Unified Diff: chrome/browser/resources/print_preview/search/recent_destination_list.js

Issue 595423002: Take search query into account rendering recent destination list items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/browser/resources/print_preview/search/destination_list.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/search/recent_destination_list.js
diff --git a/chrome/browser/resources/print_preview/search/recent_destination_list.js b/chrome/browser/resources/print_preview/search/recent_destination_list.js
index a5952c07e9704306d1590b9d6a1d7fe9cee70271..6b17a0f9764bea7743414f4f52688df7b8214196 100644
--- a/chrome/browser/resources/print_preview/search/recent_destination_list.js
+++ b/chrome/browser/resources/print_preview/search/recent_destination_list.js
@@ -35,12 +35,8 @@ cr.define('print_preview', function() {
destinations.length == 0);
setIsVisible(this.getChildElement('.destination-list > footer'), false);
var numItems = Math.min(destinations.length, this.shortListSize_);
- for (var i = 0; i < numItems; i++) {
- var destListItem = new print_preview.DestinationListItem(
- this.eventTarget_, destinations[i]);
- this.addChild(destListItem);
- destListItem.render(this.getChildElement('.destination-list > ul'));
- }
+ for (var i = 0; i < numItems; i++)
+ this.renderListItemInternal(destinations[i]);
}
};
« no previous file with comments | « chrome/browser/resources/print_preview/search/destination_list.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698