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

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

Issue 9167019: Consolidate icon loading on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. Created 8 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
Index: chrome/browser/resources/downloads.js
diff --git a/chrome/browser/resources/downloads.js b/chrome/browser/resources/downloads.js
index ecdba4edce4826260012d10b55f736d5b97bd9d7..735326ca723b194f9e86176391dd512bd179172d 100644
--- a/chrome/browser/resources/downloads.js
+++ b/chrome/browser/resources/downloads.js
@@ -394,7 +394,8 @@ Download.prototype.update = function(download) {
this.safe_.style.display = 'none';
} else {
downloads.scheduleIconLoad(this.nodeImg_,
- 'chrome://fileicon/' + this.filePath_);
+ 'chrome://fileicon/' +
+ encodeURIComponent(this.filePath_));
if (this.state_ == Download.States.COMPLETE &&
!this.fileExternallyRemoved_) {
« no previous file with comments | « chrome/browser/resources/chromeos/active_downloads.js ('k') | chrome/browser/ui/webui/active_downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698