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

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

Issue 345853004: Gallery: Filter out video files in the gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/gallery/js/background.js
diff --git a/ui/file_manager/gallery/js/background.js b/ui/file_manager/gallery/js/background.js
index 144d61b0127bf4bc4ca3117cf0433228846001d6..8e053fb4975cdc4f07940faef4583c15ebee98f5 100644
--- a/ui/file_manager/gallery/js/background.js
+++ b/ui/file_manager/gallery/js/background.js
@@ -160,7 +160,7 @@ function launch(selectedEntriesPromise) {
if (entries.length === 1) {
var parentPromise = new Promise(entries[0].getParent.bind(entries[0]));
return parentPromise.then(getChildren).then(function(entries) {
- return entries.filter(FileType.isImageOrVideo);
+ return entries.filter(FileType.isImage);
});
} else {
return entries;
« 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