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

Unified Diff: ui/file_manager/gallery/js/gallery_util.js

Issue 1053653003: Gallery: Support RAW files in Gallery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the second bind. Created 5 years, 9 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 3275151fde8d14c533dc096e1e07a5caa575555f..905b729920f595beb311a8c2ac4a0e01411c8768 100644
--- a/ui/file_manager/gallery/js/gallery_util.js
+++ b/ui/file_manager/gallery/js/gallery_util.js
@@ -44,7 +44,9 @@ GalleryUtil.createEntrySet = function(originalEntries) {
}
return entriesPromise.then(function(entries) {
- return entries.filter(FileType.isImage).sort(function(a, b) {
+ return entries.filter(function(entry) {
+ return FileType.isImage(entry) || FileType.isRaw(entry);
+ }).sort(function(a, b) {
return a.name.localeCompare(b.name);
});
});
« no previous file with comments | « ui/file_manager/gallery/js/gallery_item_unittest.js ('k') | ui/file_manager/gallery/js/image_editor/image_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698