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

Issue 2912033002: Continue CopyTask when some files are unreadable. (Closed)

Created:
3 years, 6 months ago by tetsui
Modified:
3 years, 6 months ago
Reviewers:
fukino
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Continue CopyTask when some files are unreadable. Previously, in case of copying multiple files, CopyTask was aborted when some files return errors during the copy. With this CL, the CopyTask will skip the unreadable files and continue, while making separate progress center item so that the remaining copy progress is still visible. BUG=499642 TEST=manually with fileSystemProvider extension to mock broken files. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2912033002 Cr-Commit-Position: refs/heads/master@{#476949} Committed: https://chromium.googlesource.com/chromium/src/+/cc2b31f0e4fe164ec05ab2788356d15006f96c8f

Patch Set 1 #

Patch Set 2 : Only generate single error progress center item. #

Patch Set 3 : Add consecutive failure limit. #

Total comments: 2

Patch Set 4 : Keep successCallback and errorCallback behavior. #

Total comments: 6

Patch Set 5 : Do not run deleteOriginals when we have lastError. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
M ui/file_manager/file_manager/background/js/file_operation_util.js View 1 2 3 4 3 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
tetsui
fukino@: PTAL. Thanks!
3 years, 6 months ago (2017-05-30 06:58:07 UTC) #7
tetsui
self-review: * What if many files return errors? (progress center might be flooded) * The ...
3 years, 6 months ago (2017-05-30 07:05:11 UTC) #8
tetsui
Please take a look! I resolved the consecutive failure issue and the flooded progress center ...
3 years, 6 months ago (2017-06-02 01:42:23 UTC) #13
fukino
https://codereview.chromium.org/2912033002/diff/40001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/40001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode856 ui/file_manager/file_manager/background/js/file_operation_util.js:856: successCallback(); It seems weird to call successCallback() when the ...
3 years, 6 months ago (2017-06-02 07:02:41 UTC) #16
tetsui
https://codereview.chromium.org/2912033002/diff/40001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/40001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode856 ui/file_manager/file_manager/background/js/file_operation_util.js:856: successCallback(); On 2017/06/02 07:02:40, fukino wrote: > It seems ...
3 years, 6 months ago (2017-06-05 00:30:25 UTC) #17
fukino
https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode853 ui/file_manager/file_manager/background/js/file_operation_util.js:853: this.processedBytes = this.calcProcessedBytes_(); Is it safe to add bytes ...
3 years, 6 months ago (2017-06-05 04:04:37 UTC) #22
tetsui
https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode853 ui/file_manager/file_manager/background/js/file_operation_util.js:853: this.processedBytes = this.calcProcessedBytes_(); On 2017/06/05 04:04:37, fukino wrote: > ...
3 years, 6 months ago (2017-06-05 04:57:29 UTC) #23
fukino
https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode866 ui/file_manager/file_manager/background/js/file_operation_util.js:866: deleteOriginals(); we should not delete original files when we ...
3 years, 6 months ago (2017-06-05 05:10:59 UTC) #24
tetsui
https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js File ui/file_manager/file_manager/background/js/file_operation_util.js (right): https://codereview.chromium.org/2912033002/diff/60001/ui/file_manager/file_manager/background/js/file_operation_util.js#newcode866 ui/file_manager/file_manager/background/js/file_operation_util.js:866: deleteOriginals(); On 2017/06/05 05:10:59, fukino wrote: > we should ...
3 years, 6 months ago (2017-06-05 05:16:37 UTC) #26
fukino
lgtm. Thanks!
3 years, 6 months ago (2017-06-05 05:24:18 UTC) #28
tetsui
On 2017/06/05 05:24:18, fukino wrote: > lgtm. Thanks! Thanks!
3 years, 6 months ago (2017-06-05 05:30:42 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2912033002/80001
3 years, 6 months ago (2017-06-05 05:49:37 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 05:54:16 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cc2b31f0e4fe164ec05ab2788356...

Powered by Google App Engine
This is Rietveld 408576698