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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_thumbnail.js

Issue 2681723002: NTP Cleanup: Remove support for "icons" layout (Closed)
Patch Set: Created 3 years, 10 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/local_ntp/most_visited_thumbnail.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
index 5742d6578dd0960b51f12a31c0b47fee92ce2102..6334ebde671eaae3e92fbaf7762b5369fb0a1bfa 100644
--- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
+++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
@@ -56,12 +56,9 @@ window.addEventListener('DOMContentLoaded', function() {
image.src = src;
}
- var useIcons = params['icons'] == '1';
if (data.dummy) {
showEmptyTile();
- } else if (useIcons && data.largeIconUrl) {
- createThumbnail(data.largeIconUrl, 'large-icon');
- } else if (!useIcons && data.thumbnailUrls && data.thumbnailUrls.length) {
+ } else if (data.thumbnailUrls && data.thumbnailUrls.length) {
createThumbnail(data.thumbnailUrls[0], 'thumbnail');
} else if (data.domain) {
showDomainElement();

Powered by Google App Engine
This is Rietveld 408576698