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..d60b0213d4045ec9f22af7553f173b69eebade31 100644 |
--- a/chrome/browser/resources/file_manager/foreground/js/file_manager.js |
+++ b/chrome/browser/resources/file_manager/foreground/js/file_manager.js |
@@ -1488,6 +1488,7 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52; |
*/ |
FileManager.prototype.finishSetupCurrentDirectory_ = function( |
directoryEntry, opt_selectionEntry, opt_suggestedName) { |
+ console.log(directoryEntry, opt_selectionEntry, opt_suggestedName); |
hirono
2013/12/05 08:32:36
nit: Please remove this line.
mtomasz
2013/12/06 05:14:18
Done.
|
// Open the directory, and select the selection (if passed). |
this.directoryModel_.changeDirectoryEntry(directoryEntry, function() { |
if (opt_selectionEntry) |
@@ -1520,13 +1521,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); |
} |
} |