Index: chrome/browser/resources/file_manager/background/js/file_operation_manager.js |
diff --git a/chrome/browser/resources/file_manager/background/js/file_operation_manager.js b/chrome/browser/resources/file_manager/background/js/file_operation_manager.js |
index 00258fc94384ac4f0f84c89c4223d512a28f8f1e..c3f5678ba5649fa0ebe921027db952383b9a7dbf 100644 |
--- a/chrome/browser/resources/file_manager/background/js/file_operation_manager.js |
+++ b/chrome/browser/resources/file_manager/background/js/file_operation_manager.js |
@@ -636,15 +636,6 @@ FileOperationManager.CopyTask.prototype.run = function( |
this.processEntry_( |
entry, this.targetDirEntry, |
function(sourceEntry, destinationEntry) { |
- // Finalize the entry's progress state. |
- var sourceEntryURL = sourceEntry.toURL(); |
- var processedEntry = |
- this.processingEntries[index][sourceEntryURL]; |
- |
- // Update current source index. |
- this.processingSourceIndex_ = index + 1; |
- this.processedBytes = this.calcProcessedBytes_(); |
- |
// The destination entry may be null, if the copied file got |
// deleted just after copying. |
if (destinationEntry) { |
@@ -662,7 +653,12 @@ FileOperationManager.CopyTask.prototype.run = function( |
progressCallback(); |
} |
}.bind(this), |
- callback, |
+ function() { |
+ // Update current source index and processing bytes. |
+ this.processingSourceIndex_ = index + 1; |
+ this.processedBytes = this.calcProcessedBytes_(); |
+ callback(); |
+ }.bind(this), |
errorCallback); |
}, |
function() { |