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

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

Issue 1148853004: Files.app: Disable eject button on MTP device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: 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 8de559429e0da677a2a4536cd9b1f844ba8496da..e5e336cf4157c1c71465941d918f78d54aa75ddb 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
@@ -437,7 +437,9 @@ function VolumeItem(modelItem, tree) {
item.setupIcon_(item.querySelector('.icon'), item.volumeInfo_);
// Attach the "eject" icon if the volume is ejectable.
- if (modelItem.volumeInfo_.source === VolumeManagerCommon.Source.DEVICE ||
+ if ((modelItem.volumeInfo_.source === VolumeManagerCommon.Source.DEVICE &&
+ modelItem.volumeInfo_.volumeType !==
+ VolumeManagerCommon.VolumeType.MTP) ||
modelItem.volumeInfo_.source === VolumeManagerCommon.Source.FILE) {
item.setupEjectButton_(item.rowElement);
}
« 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