Commit b9ef52ec authored by kinaba@chromium.org's avatar kinaba@chromium.org

Fix copy number counting in Files.app.

BUG=343835

Review URL: https://codereview.chromium.org/166263002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251988 0039d316-1c4b-4281-b951-d872f2087c98
parent e81c3513
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment