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

Unified Diff: chrome/browser/resources/file_manager/js/default_action_dialog.js

Issue 14589007: Files.app: Fixed the icon of image open item in default action dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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/file_manager/js/default_action_dialog.js
diff --git a/chrome/browser/resources/file_manager/js/default_action_dialog.js b/chrome/browser/resources/file_manager/js/default_action_dialog.js
index f84a6ea1dfb4ce550888b31593d27c9ed7c1485c..55ed02eb440040323989f61ca7dcb525f37222b2 100644
--- a/chrome/browser/resources/file_manager/js/default_action_dialog.js
+++ b/chrome/browser/resources/file_manager/js/default_action_dialog.js
@@ -69,11 +69,11 @@ cr.define('cr.filebrowser', function() {
var div = this.document_.createElement('div');
div.textContent = item.label;
- if (item.iconType)
+ if (item.iconType) {
div.setAttribute('file-type-icon', item.iconType);
-
- if (item.iconUrl)
+ } else if (item.iconUrl) {
div.style.backgroundImage = 'url(' + item.iconUrl + ')';
+ }
if (item.class)
div.classList.add(item.class);
« 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