Index: ui/file_manager/file_manager/foreground/js/file_tasks.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_tasks.js b/ui/file_manager/file_manager/foreground/js/file_tasks.js |
index 1ed2818459d0b8941f4f02d2d1f2dfe65ae9b67a..2c578cca10e04d91c7cb4b229b22451bb0ee91f3 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_tasks.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_tasks.js |
@@ -536,25 +536,6 @@ FileTasks.prototype.checkAvailability_ = function(callback) { |
FileTasks.prototype.executeInternalTask_ = function(id, entries) { |
var fm = this.fileManager_; |
- if (id === 'play') { |
- var selectedEntry = entries[0]; |
- if (entries.length === 1) { |
- // If just a single audio file is selected pass along every audio file |
- // in the directory. |
- entries = fm.getAllEntriesInCurrentDirectory().filter(FileType.isAudio); |
- } |
- // TODO(mtomasz): Move conversion from entry to url to custom bindings. |
- // crbug.com/345527. |
- var urls = util.entriesToURLs(entries); |
- var position = urls.indexOf(selectedEntry.toURL()); |
- chrome.fileManagerPrivate.getProfiles( |
- function(profiles, currentId, displayedId) { |
- fm.backgroundPage.launchAudioPlayer( |
- {items: urls, position: position}, displayedId); |
- }); |
- return; |
- } |
- |
if (id === 'mount-archive') { |
this.mountArchivesInternal_(entries); |
return; |