diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-15 02:35:50 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-15 02:35:50 +0000 |
commit | d23796f5d20c3a4015957704e8cf812f919f1cc7 (patch) | |
tree | 3cfa831980dc255be0d5b36fecfc9f9504b673a0 | |
parent | f9a7a34abb8e2d069a44e07e70a22b9bc79efb72 (diff) | |
download | chromium_src-d23796f5d20c3a4015957704e8cf812f919f1cc7.zip chromium_src-d23796f5d20c3a4015957704e8cf812f919f1cc7.tar.gz chromium_src-d23796f5d20c3a4015957704e8cf812f919f1cc7.tar.bz2 |
Support HiDPI favicons on more webui pages.
Namely on about:history, in the "recently closed" box on the ntp, and
in the home page picker on chrome:options.
BUG=147750
TEST=Hit cmd-y, admire icons. Repeat for the other two places.
Review URL: https://codereview.chromium.org/11583015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173261 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/history/history.js | 2 | ||||
-rw-r--r-- | chrome/browser/resources/ntp4/recently_closed.js | 2 | ||||
-rw-r--r-- | chrome/browser/resources/options/home_page_overlay.js | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js index 818d08f..5f1ec22 100644 --- a/chrome/browser/resources/history/history.js +++ b/chrome/browser/resources/history/history.js @@ -202,7 +202,7 @@ Visit.prototype.addHighlightedText_ = function(node, content, highlightText) { */ Visit.prototype.getTitleDOM_ = function() { var node = createElementWithClassName('div', 'title'); - node.style.backgroundImage = url('chrome://favicon/' + this.url_); + node.style.backgroundImage = url(getFaviconURL(this.url_)); node.style.backgroundSize = '16px'; var link = document.createElement('a'); diff --git a/chrome/browser/resources/ntp4/recently_closed.js b/chrome/browser/resources/ntp4/recently_closed.js index 852c33a..8f91d2d 100644 --- a/chrome/browser/resources/ntp4/recently_closed.js +++ b/chrome/browser/resources/ntp4/recently_closed.js @@ -83,7 +83,7 @@ cr.define('ntp', function() { a.title = data.tabs.map(function(tab) { return tab.title; }).join('\n'); } else { a.href = data.url; - a.style.backgroundImage = 'url(chrome://favicon/' + data.url + ')'; + a.style.backgroundImage = url(getFaviconURL(data.url)); a.textContent = data.title; } diff --git a/chrome/browser/resources/options/home_page_overlay.js b/chrome/browser/resources/options/home_page_overlay.js index ad6bb56..8c6f002 100644 --- a/chrome/browser/resources/options/home_page_overlay.js +++ b/chrome/browser/resources/options/home_page_overlay.js @@ -99,8 +99,7 @@ cr.define('options', function() { */ updateFavicon_: function() { var urlField = $('homepage-url-field'); - urlField.style.backgroundImage = url('chrome://favicon/' + - urlField.value); + urlField.style.backgroundImage = url(getFaviconURL(urlField.value)); }, /** |