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

Unified Diff: chrome/browser/resources/file_manager/background/js/file_operation_manager.js

Issue 166263002: Fix copy number counting in Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698