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

Unified Diff: ui/file_manager/file_manager/common/js/importer_common.js

Issue 1158923004: Add support to mime types in Files app UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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: ui/file_manager/file_manager/common/js/importer_common.js
diff --git a/ui/file_manager/file_manager/common/js/importer_common.js b/ui/file_manager/file_manager/common/js/importer_common.js
index 448645de0ea3d81044087e337db2a66e9f35c7f7..6a5eb19192d66fb9dc632907058fd732f52bcae5 100644
--- a/ui/file_manager/file_manager/common/js/importer_common.js
+++ b/ui/file_manager/file_manager/common/js/importer_common.js
@@ -75,9 +75,10 @@ importer.Destination = {
* @return {boolean}
*/
importer.isEligibleType = function(entry) {
+ // TODO(mtomasz): Add support to mime types.
return !!entry &&
entry.isFile &&
- FileType.isType(entry, ['image', 'raw', 'video']);
+ FileType.isType(['image', 'raw', 'video'], entry);
};
/**
« no previous file with comments | « ui/file_manager/file_manager/common/js/file_type.js ('k') | ui/file_manager/file_manager/foreground/js/directory_contents.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698