| Index: ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| index 23e89602b2dd396854e632d4c1a16f5768505add..a65c37e87ea69183110232bac93df970d23adfe2 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
|
| @@ -1040,11 +1040,10 @@ CommandHandler.COMMANDS_['cloud-import'] = /** @type {Command} */ ({
|
| */
|
| execute: function(event, fileManager) {
|
| metrics.recordEnum('CloudImport.UserAction', 'IMPORT_INITIATED');
|
| - var currentDirectory = fileManager.getCurrentDirectoryEntry();
|
| - if (currentDirectory !== null) {
|
| - var importer = fileManager.mediaImportHandler;
|
| - importer.importMedia(currentDirectory);
|
| - }
|
| + var importer = fileManager.mediaImportHandler;
|
| + importer.importMedia(
|
| + /** @type {!DirectoryEntry} */ (
|
| + fileManager.getCurrentDirectoryEntry()));
|
| },
|
| /**
|
| * @param {!Event} event Command event.
|
|
|