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

Unified Diff: ui/file_manager/file_manager/background/js/media_import_handler.js

Issue 837563002: Show a little circly/arrowey badge for files that have been copied locally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add copy support to test import_history and update media import handler test to check for copy resu… Created 5 years, 11 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/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);
});
};

Powered by Google App Engine
This is Rietveld 408576698