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

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

Issue 11762004: Make favicons for about:history and about:bookmarks switch from lodpi to hidpi when dragging browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/resources/history/history.js ('k') | chrome/browser/resources/ntp4/other_sessions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a6c43cf63d1566170535a596cc338aac3c93bc9..aea340239f3445eeeb366678f50b3f8c43b0b695 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -94,9 +94,12 @@ cr.define('ntp', function() {
this.classList.add('focusable');
var faviconDiv = this.querySelector('.favicon');
- var faviconUrl = getFaviconUrl(data.url);
- faviconDiv.style.backgroundImage = url(faviconUrl);
- chrome.send('getFaviconDominantColor', [faviconUrl, this.id]);
+ faviconDiv.style.backgroundImage = getFaviconImageSet(data.url);
+
+ // The favicon should have the same dominant color regardless of the
+ // device pixel ratio the favicon is requested for.
+ chrome.send('getFaviconDominantColor',
+ [getFaviconUrlForCurrentDevicePixelRatio(data.url), this.id]);
var title = this.querySelector('.title');
title.textContent = data.title;
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | chrome/browser/resources/ntp4/other_sessions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698