Commit 995127b8 authored by hirono@chromium.org's avatar hirono@chromium.org

Gallery: Filter out video files in the gallery.

BUG=384944
TEST=manually
R=yoshiki@chromium.org

Review URL: https://codereview.chromium.org/345853004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278592 0039d316-1c4b-4281-b951-d872f2087c98
parent 41de8a87
...@@ -160,7 +160,7 @@ function launch(selectedEntriesPromise) { ...@@ -160,7 +160,7 @@ function launch(selectedEntriesPromise) {
if (entries.length === 1) { if (entries.length === 1) {
var parentPromise = new Promise(entries[0].getParent.bind(entries[0])); var parentPromise = new Promise(entries[0].getParent.bind(entries[0]));
return parentPromise.then(getChildren).then(function(entries) { return parentPromise.then(getChildren).then(function(entries) {
return entries.filter(FileType.isImageOrVideo); return entries.filter(FileType.isImage);
}); });
} else { } else {
return entries; return entries;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment