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

Issue 22150006: Re-implement cancellation of copyFileEntry_(). (Closed)

Created:
7 years, 4 months ago by hidehiko
Modified:
7 years, 4 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, arv+watch_chromium.org, hirono
Visibility:
Public.

Description

Re-implement cancellation of copyFileEntry_(). Currently, copyFileEntry_ depends on FileCopyOperation.maybeCancel. This CL removes it, instead copyFileEntry_ starts to return a callback to cancel the on going operation. Also, this CL adds some missing cancellation handling in copyFileEntry_(). BUG=246976 TEST=Ran browser_tests --gtest_filter="*FileSystemExtensionApiTest*:*FileManagerBrowserTest*" and tested manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215820

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Rebase #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -26 lines) Patch
M chrome/browser/resources/file_manager/js/file_copy_manager.js View 1 2 6 chunks +54 lines, -21 lines 0 comments Download
M chrome/browser/resources/file_manager/js/util.js View 1 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 4 months ago (2013-08-05 08:33:12 UTC) #1
mtomasz
The new cancellation is awesome! https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js File chrome/browser/resources/file_manager/js/file_copy_manager.js (right): https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js#newcode487 chrome/browser/resources/file_manager/js/file_copy_manager.js:487: this.cancelRequested_ = true; Can ...
7 years, 4 months ago (2013-08-06 01:39:19 UTC) #2
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js File chrome/browser/resources/file_manager/js/file_copy_manager.js (right): https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js#newcode487 chrome/browser/resources/file_manager/js/file_copy_manager.js:487: this.cancelRequested_ = true; ...
7 years, 4 months ago (2013-08-06 02:14:55 UTC) #3
mtomasz
https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js File chrome/browser/resources/file_manager/js/file_copy_manager.js (right): https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js#newcode487 chrome/browser/resources/file_manager/js/file_copy_manager.js:487: this.cancelRequested_ = true; On 2013/08/06 02:14:55, hidehiko wrote: > ...
7 years, 4 months ago (2013-08-06 02:21:38 UTC) #4
mtomasz
https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js File chrome/browser/resources/file_manager/js/file_copy_manager.js (right): https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js#newcode1023 chrome/browser/resources/file_manager/js/file_copy_manager.js:1023: errorCallback(util.createFileError(FileError.ABORT_ERR)); On 2013/08/06 02:21:38, mtomasz wrote: > On 2013/08/06 ...
7 years, 4 months ago (2013-08-06 02:22:28 UTC) #5
mtomasz
On 2013/08/06 02:22:28, mtomasz wrote: > https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js > File chrome/browser/resources/file_manager/js/file_copy_manager.js (right): > > https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js#newcode1023 > ...
7 years, 4 months ago (2013-08-06 03:35:27 UTC) #6
hidehiko
On 2013/08/06 03:35:27, mtomasz wrote: > On 2013/08/06 02:22:28, mtomasz wrote: > > > https://codereview.chromium.org/22150006/diff/3001/chrome/browser/resources/file_manager/js/file_copy_manager.js ...
7 years, 4 months ago (2013-08-06 03:48:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/22150006/12001
7 years, 4 months ago (2013-08-06 03:48:43 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=156548
7 years, 4 months ago (2013-08-06 04:42:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/22150006/12001
7 years, 4 months ago (2013-08-06 04:43:02 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 06:20:38 UTC) #11
Message was sent while issue was closed.
Change committed as 215820

Powered by Google App Engine
This is Rietveld 408576698