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

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

Issue 2786833003: NTP thumbnails: Always pass singular "thumbnailUrl" to the iframe (Closed)
Patch Set: . Created 3 years, 9 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 6334ebde671eaae3e92fbaf7762b5369fb0a1bfa..54a5e337b57490f4b8f11c9ce850a8d74d5169c1 100644
--- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
+++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
@@ -58,8 +58,8 @@ window.addEventListener('DOMContentLoaded', function() {
if (data.dummy) {
showEmptyTile();
- } else if (data.thumbnailUrls && data.thumbnailUrls.length) {
- createThumbnail(data.thumbnailUrls[0], 'thumbnail');
+ } else if (data.thumbnailUrl) {
+ createThumbnail(data.thumbnailUrl, 'thumbnail');
} else if (data.domain) {
showDomainElement();
} else {

Powered by Google App Engine
This is Rietveld 408576698