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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 /** 6 /**
7 * @fileoverview Rendering for iframed most visited thumbnails. 7 * @fileoverview Rendering for iframed most visited thumbnails.
8 */ 8 */
9 9
10 window.addEventListener('DOMContentLoaded', function() { 10 window.addEventListener('DOMContentLoaded', function() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 showDomainElement(); 51 showDomainElement();
52 } else { 52 } else {
53 showEmptyTile(); 53 showEmptyTile();
54 } 54 }
55 }; 55 };
56 image.src = src; 56 image.src = src;
57 } 57 }
58 58
59 if (data.dummy) { 59 if (data.dummy) {
60 showEmptyTile(); 60 showEmptyTile();
61 } else if (data.thumbnailUrls && data.thumbnailUrls.length) { 61 } else if (data.thumbnailUrl) {
62 createThumbnail(data.thumbnailUrls[0], 'thumbnail'); 62 createThumbnail(data.thumbnailUrl, 'thumbnail');
63 } else if (data.domain) { 63 } else if (data.domain) {
64 showDomainElement(); 64 showDomainElement();
65 } else { 65 } else {
66 showEmptyTile(); 66 showEmptyTile();
67 } 67 }
68 }); 68 });
69 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698