Index: ui/file_manager/file_manager/background/js/media_import_handler.js |
diff --git a/ui/file_manager/file_manager/background/js/media_import_handler.js b/ui/file_manager/file_manager/background/js/media_import_handler.js |
index 4e62ee2932d9ce1f3b8447bd41b7151b0d6dbbec..ac49ac7f51a69081bf9aeb4441b6ea1b3f36a9a8 100644 |
--- a/ui/file_manager/file_manager/background/js/media_import_handler.js |
+++ b/ui/file_manager/file_manager/background/js/media_import_handler.js |
@@ -204,10 +204,14 @@ importer.MediaImportHandler.ImportTask.prototype.onProgress_ = |
/** @param {!FileEntry} entry */ |
importer.MediaImportHandler.ImportTask.prototype.markAsCopied_ = |
function(entry) { |
+ var destinationUrl = this.destination_.toURL() + '/' + entry.name; |
this.historyLoader_.getHistory().then( |
/** @param {!importer.ImportHistory} history */ |
function(history) { |
- history.markImported(entry, importer.Destination.GOOGLE_DRIVE); |
+ history.markCopied( |
+ entry, |
+ importer.Destination.GOOGLE_DRIVE, |
+ destinationUrl); |
}); |
}; |