Commit 37641184 authored by hidehiko@chromium.org's avatar hidehiko@chromium.org

Remove setTimeout for serviceNextCopyTaskEntry_().

FileCopyManager.serviceNextCopyTaskEntry_() already works in asynchronous way,
so it shouldn't be necessary to run it with setTimeout().

BUG=246976
TEST=Ran browser_tests --gtest_filter="*FileSystemExtensionApiTest*:*FileManagerBrowserTest*".

Review URL: https://chromiumcodereview.appspot.com/19818005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213388 0039d316-1c4b-4281-b951-d872f2087c98
parent 76086840
...@@ -746,12 +746,7 @@ FileCopyManager.prototype.serviceCopyTask_ = function( ...@@ -746,12 +746,7 @@ FileCopyManager.prototype.serviceCopyTask_ = function(
} }
self.sendProgressEvent_('PROGRESS'); self.sendProgressEvent_('PROGRESS');
self.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback);
// 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);
}; };
this.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback); this.serviceNextCopyTaskEntry_(task, onEntryServiced, errorCallback);
......
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