| 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]);
|
| }
|
| };
|
|
|
|
|