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..73ad4631b965903e209f58ada72efc2bdce509a1 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 |
@@ -641,8 +641,7 @@ FileOperationManager.CopyTask.prototype.run = function( |
var processedEntry = |
this.processingEntries[index][sourceEntryURL]; |
- // Update current source index. |
- this.processingSourceIndex_ = index + 1; |
+ // Update processing bytes |
this.processedBytes = this.calcProcessedBytes_(); |
hirono
2014/02/14 10:56:39
Could you please also move the line to the complet
kinaba
2014/02/19 00:34:35
Done.
|
// The destination entry may be null, if the copied file got |
@@ -662,7 +661,11 @@ FileOperationManager.CopyTask.prototype.run = function( |
progressCallback(); |
} |
}.bind(this), |
- callback, |
+ function() { |
+ // Update current source index. |
+ this.processingSourceIndex_ = index + 1; |
+ callback(); |
+ }.bind(this), |
errorCallback); |
}, |
function() { |