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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_tasks.js

Issue 641283002: Separate the audio player app from Files.app Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 6 years, 2 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/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;
« no previous file with comments | « ui/file_manager/file_manager/background/js/background.js ('k') | ui/file_manager/file_manager/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698