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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/file_manager.js

Issue 104643004: Fix broken task handling in Files app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 7 years 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 | chrome/browser/resources/file_manager/foreground/js/file_tasks.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/foreground/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/file_manager.js b/chrome/browser/resources/file_manager/foreground/js/file_manager.js
index 940d321af53ed4b43c6f18755138fd98749fa949..43a75fbb0d5644ed0ea5ee7853a107bad65e2119 100644
--- a/chrome/browser/resources/file_manager/foreground/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/foreground/js/file_manager.js
@@ -1520,13 +1520,12 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
if (mediaType == 'image' || mediaType == 'video') {
task = function() {
// TODO(mtomasz): Replace the url with an entry.
- new FileTasks(this, this.params_).openGallery(
- [opt_selectionEntry.toURL()]);
+ new FileTasks(this, this.params_).openGallery([opt_selectionEntry]);
}.bind(this);
} else if (mediaType == 'archive') {
task = function() {
new FileTasks(this, this.params_).mountArchives(
- [opt_selectionEntry.toURL()]);
+ [opt_selectionEntry]);
}.bind(this);
}
}
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/foreground/js/file_tasks.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698