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

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: Rebase + Review fix 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..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() {
« 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