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

Unified Diff: chrome/browser/resources/ntp4/suggestions_page.js

Issue 10647003: Discovery API supports specifying a tile in a URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 5 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/ntp4/suggestions_page.js
diff --git a/chrome/browser/resources/ntp4/suggestions_page.js b/chrome/browser/resources/ntp4/suggestions_page.js
index 4e4f0d63d5fe197fe4a873d91af7fa03f2b73fc2..8d8fbdc684b8a5bcc5fb9649b8fb878440849a28 100644
--- a/chrome/browser/resources/ntp4/suggestions_page.js
+++ b/chrome/browser/resources/ntp4/suggestions_page.js
@@ -109,7 +109,10 @@ cr.define('ntp', function() {
// Sets the tooltip.
this.title = data.title;
- var thumbnailUrl = 'chrome://thumb/' + data.url;
+ var thumbnailUrl;
+ thumbnailUrl = data.urlImage ? data.urlImage :
+ 'chrome://thumb/' + data.url;
+
this.querySelector('.thumbnail').style.backgroundImage =
url(thumbnailUrl);
« no previous file with comments | « chrome/browser/extensions/api/discovery/suggested_link.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_source_discovery.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698