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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 160126: NNTP: Adds 2 hard coded thumbnails.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 21555)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -246,10 +246,11 @@
// attack but setting style.backgroundImage = 'url(javascript:...)' does
// not execute the JavaScript in WebKit.
t.querySelector('.thumbnail-wrapper').style.backgroundImage =
- 'url("chrome://thumb/' + d.url + '")';
+ 'url("' + (d.thumbnailUrl || 'chrome://thumb/' + d.url) + '")';
var titleDiv = t.querySelector('.title > div');
titleDiv.xtitle = titleDiv.textContent = d.title;
- titleDiv.style.backgroundImage = 'url("chrome://favicon/' + d.url + '")';
+ titleDiv.style.backgroundImage = 'url("' +
+ (d.faviconUrl || 'chrome://favicon/' + d.url) + '")';
titleDiv.dir = d.direction;
}
}
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698