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

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

Issue 10795047: Request file icon at current device scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads/downloads.js
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
index 751d7c057295bc966268e32302b40ed61415f010..47fbb7a7902c5337cf0002d0b701957fc22a2477 100644
--- a/chrome/browser/resources/downloads/downloads.js
+++ b/chrome/browser/resources/downloads/downloads.js
@@ -415,7 +415,8 @@ Download.prototype.update = function(download) {
} else {
downloads.scheduleIconLoad(this.nodeImg_,
'chrome://fileicon/' +
- encodeURIComponent(this.filePath_));
+ encodeURIComponent(this.filePath_) +
+ '?scale=' + window.devicePixelRatio + 'x');
if (this.state_ == Download.States.COMPLETE &&
!this.fileExternallyRemoved_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698