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

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

Issue 10909236: Add support for favicon scale factor in WebUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix HandleGetFaviconDominantColor. Created 8 years, 3 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/most_visited_page.js
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js
index 9038b1d2b11807f7073b744f2aff9a2dc61492f1..97ebdf2277c673af5d04bcde7fce12d418a6b4cb 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -94,7 +94,7 @@ cr.define('ntp', function() {
this.classList.add('focusable');
var faviconDiv = this.querySelector('.favicon');
- var faviconUrl = 'chrome://favicon/size/16/' + data.url;
+ var faviconUrl = getFaviconURL(data.url);
faviconDiv.style.backgroundImage = url(faviconUrl);
chrome.send('getFaviconDominantColor', [faviconUrl, this.id]);

Powered by Google App Engine
This is Rietveld 408576698