Chromium Code Reviews| 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 887709dda9b38d6cd4bf8b2d79db8bf05a8b4f98..c2e334e8028574bfb7a02a1ce228b7ec33fe4fae 100644 |
| --- a/chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
| +++ b/chrome/browser/resources/local_ntp/most_visited_thumbnail.js |
| @@ -42,17 +42,14 @@ window.addEventListener('DOMContentLoaded', function() { |
| function createThumbnail(src) { |
| var image = document.createElement('img'); |
| image.onload = function() { |
| - var shadow = document.createElement('span'); |
| - shadow.className = 'shadow'; |
| var link = createMostVisitedLink( |
| params, data.url, data.title, undefined, data.direction, |
| data.provider); |
| - link.appendChild(shadow); |
| link.appendChild(image); |
| displayLink(link); |
| }; |
| image.onerror = function() { |
| - if (data.domain) { |
| + if (!params.tfb && data.domain) { |
|
Mathieu
2014/08/13 20:09:30
handle this param better
huangs
2014/08/13 21:34:09
Calling this etfb and adding comments. Note that
|
| showDomainElement(); |
| logEvent(NTP_LOGGING_EVENT_TYPE.NTP_GRAY_TILE_FALLBACK); |
| } else { |