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

Unified Diff: ui/file_manager/gallery/js/gallery_util.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/gallery/js/gallery_util.js
diff --git a/ui/file_manager/gallery/js/gallery_util.js b/ui/file_manager/gallery/js/gallery_util.js
index c5d3fe0f61cc0508706ce4ab936f4852e853d9f0..7b04bfd1df773765fc3884c6194c592e68e0022d 100644
--- a/ui/file_manager/gallery/js/gallery_util.js
+++ b/ui/file_manager/gallery/js/gallery_util.js
@@ -45,6 +45,8 @@ GalleryUtil.createEntrySet = function(originalEntries) {
return entriesPromise.then(function(entries) {
return entries.filter(function(entry) {
+ // Currently the gallery doesn't support mime types, so checking by
+ // file extensions is enough.
return FileType.isImage(entry) || FileType.isRaw(entry);
}).sort(function(a, b) {
return a.name.localeCompare(b.name);

Powered by Google App Engine
This is Rietveld 408576698