summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 01:37:00 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 01:37:00 +0000
commitf7d17b2ecc119c27673e8cc8c858761d253277f3 (patch)
tree5f17de5d80a832a0ce07aee13557f6e929ade11c /chrome/browser/resources
parentdf407eaf9bad2ca4e4d2099904d0a35d11caec3e (diff)
downloadchromium_src-f7d17b2ecc119c27673e8cc8c858761d253277f3.zip
chromium_src-f7d17b2ecc119c27673e8cc8c858761d253277f3.tar.gz
chromium_src-f7d17b2ecc119c27673e8cc8c858761d253277f3.tar.bz2
, INNTP: Adds 2 hard coded thumbnails.
This code needs to be rewritten after beta to handle localized content. BUG=15079 TEST=Start chrome with a new profile. There should be 2 thumbnails on the new tab page. Review URL: http://codereview.chromium.org/160126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/new_new_tab.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index a7adfd6e..034d862 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -246,10 +246,11 @@ function renderMostVisited(data) {
// 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;
}
}