| 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 2c3e770702b85e8ed2cd2d105182cce47b83cde9..3f28daaf78310c5d6137437e45072a6989647934 100644
|
| --- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
|
| +++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js
|
| @@ -39,8 +39,11 @@ window.addEventListener('DOMContentLoaded', function() {
|
| data.provider));
|
| }
|
| // Creates and adds an image.
|
| - function createThumbnail(src) {
|
| + function createThumbnail(src, imageClass) {
|
| var image = document.createElement('img');
|
| + if (imageClass) {
|
| + image.classList.add(imageClass);
|
| + }
|
| image.onload = function() {
|
| var link = createMostVisitedLink(
|
| params, data.url, data.title, undefined, data.direction,
|
| @@ -69,8 +72,11 @@ window.addEventListener('DOMContentLoaded', function() {
|
| if (data.dummy) {
|
| showEmptyTile();
|
| logEvent(NTP_LOGGING_EVENT_TYPE.NTP_EXTERNAL_TILE);
|
| + } else if (data.bigIconUrl) {
|
| + createThumbnail(data.bigIconUrl, 'big-icon');
|
| + // Log event?????
|
| } else if (data.thumbnailUrl) {
|
| - createThumbnail(data.thumbnailUrl);
|
| + createThumbnail(data.thumbnailUrl, 'thumbnail');
|
| logEvent(NTP_LOGGING_EVENT_TYPE.NTP_THUMBNAIL_TILE);
|
| } else if (data.domain) {
|
| showDomainElement();
|
|
|