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

Unified Diff: chrome/browser/resources/chromeos/active_downloads.js

Issue 9167019: Consolidate icon loading on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/chromeos/active_downloads.js
diff --git a/chrome/browser/resources/chromeos/active_downloads.js b/chrome/browser/resources/chromeos/active_downloads.js
index 3615d59b66724801719f0b25be37b44d9f6b8454..4518d6832df546276270f7663eb7786dc50fb580 100644
--- a/chrome/browser/resources/chromeos/active_downloads.js
+++ b/chrome/browser/resources/chromeos/active_downloads.js
@@ -235,7 +235,7 @@ DownloadRow.prototype = {
setDangerousIcon_: function(warning) {
this.icon.className = warning ? 'iconwarning' : 'icon';
this.icon.style.background = warning ? '' :
- 'url(chrome://fileicon' + escape(this.path) +
+ 'url(chrome://fileicon/' + encodeURIComponent(this.path) +
'?iconsize=small) no-repeat';
},

Powered by Google App Engine
This is Rietveld 408576698