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

Unified Diff: chrome/browser/resources/file_manager/js/file_copy_manager.js

Issue 19818005: Remove setTimeout for serviceNextCopyTaskEntry_(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/js/file_copy_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_copy_manager.js b/chrome/browser/resources/file_manager/js/file_copy_manager.js
index fccce395bec0b9bc6b0a7c313eb850e294f7bd89..a2d405531c4de0b445e73851690f89ac532064fb 100644
--- a/chrome/browser/resources/file_manager/js/file_copy_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_copy_manager.js
@@ -746,12 +746,7 @@ FileCopyManager.prototype.serviceCopyTask_ = function(
}
self.sendProgressEvent_('PROGRESS');
-
- // We yield a few ms between copies to give the browser a chance to service
- // events (like perhaps the user clicking to cancel the copy, for example).
- setTimeout(function() {
- self.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback);
- }, 10);
+ self.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback);
};
this.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback);
« 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