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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/directory_tree.js

Issue 2622133008: mediaview: Implement UI. (Closed)
Patch Set: Fix typo and add logging. Created 3 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 | « ui/file_manager/file_manager/foreground/js/quick_view_uma.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js b/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
index e51bae7266c9eee9379c12023226bb8daa143003..489ee969522412470350c52ad39078c79c2209ef 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
@@ -641,7 +641,14 @@ VolumeItem.prototype.setupIcon_ = function(icon, volumeInfo) {
'style', 'background-image: ' + backgroundImage);
}
icon.setAttribute('volume-type-icon', volumeInfo.volumeType);
- icon.setAttribute('volume-subtype', volumeInfo.deviceType || '');
+ if (volumeInfo.volumeType === VolumeManagerCommon.VolumeType.MEDIA_VIEW) {
+ icon.setAttribute(
+ 'volume-subtype',
+ VolumeManagerCommon.getMediaViewRootTypeFromVolumeId(
+ volumeInfo.volumeId));
+ } else {
+ icon.setAttribute('volume-subtype', volumeInfo.deviceType || '');
+ }
};
/**
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/quick_view_uma.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698