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

Issue 1194783002: Add fileManagerPrivate.onCopyError event. (Closed)

Created:
5 years, 6 months ago by yawano
Modified:
5 years, 6 months ago
Reviewers:
mtomasz, sky, tzik
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, jam, nhiroki, rginda+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add fileManagerPrivate.onCopyError event. onCopyError event is dispatched when an error had happened during the operation. The error is reported for each individual copy operation. e.g. If you have /a/b/c and try to copy /a to /d, an error of copy file operation from /a/b/c to /d/b/c can be reported. BUG=499642, 491046, 498087 TEST=none Committed: https://crrev.com/77af6f93cbd761e70e254d6b353403266aeaa8bd Cr-Commit-Position: refs/heads/master@{#335883}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove ErrorCallback and add ErrorBehavior. #

Patch Set 3 : Fix broken test cases. #

Total comments: 3

Patch Set 4 : Rename ERROR to ERROR_COPY_ENTRY. #

Patch Set 5 : Rebase. #

Total comments: 4

Patch Set 6 : Remove const and rename enum. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -141 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/event_router.cc View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc View 1 2 3 4 5 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/native_media_file_util_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/local/canned_syncable_file_system.cc View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_operation.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_operation.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/fileapi/file_system_operation_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/fileapi/recursive_operation_delegate_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -19 lines 0 comments Download
M content/public/test/async_file_test_helper.cc View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M storage/browser/fileapi/copy_or_move_operation_delegate.h View 1 2 3 4 5 3 chunks +10 lines, -8 lines 0 comments Download
M storage/browser/fileapi/copy_or_move_operation_delegate.cc View 1 2 3 4 5 5 chunks +12 lines, -1 line 0 comments Download
M storage/browser/fileapi/file_system_operation.h View 1 2 3 4 5 5 chunks +11 lines, -6 lines 0 comments Download
M storage/browser/fileapi/file_system_operation_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M storage/browser/fileapi/file_system_operation_impl.cc View 1 2 3 4 5 2 chunks +13 lines, -19 lines 0 comments Download
M storage/browser/fileapi/file_system_operation_runner.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M storage/browser/fileapi/file_system_operation_runner.cc View 1 2 3 4 5 2 chunks +8 lines, -8 lines 0 comments Download
M storage/browser/fileapi/recursive_operation_delegate.h View 1 2 3 4 5 3 chunks +5 lines, -17 lines 0 comments Download
M storage/browser/fileapi/recursive_operation_delegate.cc View 1 2 3 4 5 4 chunks +8 lines, -23 lines 0 comments Download
M storage/browser/fileapi/remove_operation_delegate.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (4 generated)
yawano
PTAL. @mtomasz: - files under chrome/browser/chromeos - file_manager_private.idl @tzik: - files under storage/browser/fileapi - files ...
5 years, 6 months ago (2015-06-19 06:50:16 UTC) #2
mtomasz
https://codereview.chromium.org/1194783002/diff/1/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/1194783002/diff/1/chrome/common/extensions/api/file_manager_private.idl#newcode925 chrome/common/extensions/api/file_manager_private.idl:925: static void onCopyError(long copyId, DOMString sourceURL, DOMString destionationURL); nit: ...
5 years, 6 months ago (2015-06-20 02:42:57 UTC) #3
yawano
Thank you for the review! @mtomasz, @tzik: How about to integrate these two StartRecursiveOperation and ...
5 years, 6 months ago (2015-06-22 02:28:27 UTC) #4
mtomasz
https://codereview.chromium.org/1194783002/diff/1/storage/browser/fileapi/copy_or_move_operation_delegate.cc File storage/browser/fileapi/copy_or_move_operation_delegate.cc (right): https://codereview.chromium.org/1194783002/diff/1/storage/browser/fileapi/copy_or_move_operation_delegate.cc#newcode781 storage/browser/fileapi/copy_or_move_operation_delegate.cc:781: StartRecursiveOperationWithIgnoringError(src_root_, ErrorCallback(), On 2015/06/22 02:28:27, yawano wrote: > I ...
5 years, 6 months ago (2015-06-22 02:31:41 UTC) #5
yawano
@tzik, @mtomasz: Removed ErrorCallback and changed to respond errors via CopyProgressCallback. PTAL. Thank you!
5 years, 6 months ago (2015-06-23 02:18:43 UTC) #6
mtomasz
In general lgtm. Is there any way we can add any test easily?
5 years, 6 months ago (2015-06-23 03:25:39 UTC) #7
yawano
On 2015/06/23 03:25:39, mtomasz wrote: > In general lgtm. Is there any way we can ...
5 years, 6 months ago (2015-06-23 03:45:33 UTC) #8
yawano
@sky: PTAL content/public/test/async_file_test_helper.cc. Thank you! @tzik: Added significant amount of codes with new patch sets. ...
5 years, 6 months ago (2015-06-23 11:21:46 UTC) #10
sky
LGTM
5 years, 6 months ago (2015-06-23 16:28:04 UTC) #11
yawano
On 2015/06/23 16:28:04, sky wrote: > LGTM @sky: Thank you!
5 years, 6 months ago (2015-06-23 23:26:39 UTC) #12
mtomasz
https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc File content/browser/fileapi/recursive_operation_delegate_unittest.cc (right): https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc#newcode334 content/browser/fileapi/recursive_operation_delegate_unittest.cc:334: TEST_F(RecursiveOperationDelegateTest, ContinueWithError) { Can we add a similar test ...
5 years, 6 months ago (2015-06-24 03:36:18 UTC) #13
yawano
https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc File content/browser/fileapi/recursive_operation_delegate_unittest.cc (right): https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc#newcode334 content/browser/fileapi/recursive_operation_delegate_unittest.cc:334: TEST_F(RecursiveOperationDelegateTest, ContinueWithError) { We have one with the name ...
5 years, 6 months ago (2015-06-24 03:38:48 UTC) #14
mtomasz
https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc File content/browser/fileapi/recursive_operation_delegate_unittest.cc (right): https://codereview.chromium.org/1194783002/diff/40001/content/browser/fileapi/recursive_operation_delegate_unittest.cc#newcode334 content/browser/fileapi/recursive_operation_delegate_unittest.cc:334: TEST_F(RecursiveOperationDelegateTest, ContinueWithError) { On 2015/06/24 03:38:48, yawano wrote: > ...
5 years, 6 months ago (2015-06-24 03:44:31 UTC) #15
tzik
https://codereview.chromium.org/1194783002/diff/80001/storage/browser/fileapi/copy_or_move_operation_delegate.h File storage/browser/fileapi/copy_or_move_operation_delegate.h (right): https://codereview.chromium.org/1194783002/diff/80001/storage/browser/fileapi/copy_or_move_operation_delegate.h#newcode100 storage/browser/fileapi/copy_or_move_operation_delegate.h:100: const ErrorBehavior error_behavior, nit: we usually pass enums by ...
5 years, 6 months ago (2015-06-24 05:01:24 UTC) #16
yawano
@tzik: PTAL again. Thank you! https://codereview.chromium.org/1194783002/diff/80001/storage/browser/fileapi/copy_or_move_operation_delegate.h File storage/browser/fileapi/copy_or_move_operation_delegate.h (right): https://codereview.chromium.org/1194783002/diff/80001/storage/browser/fileapi/copy_or_move_operation_delegate.h#newcode100 storage/browser/fileapi/copy_or_move_operation_delegate.h:100: const ErrorBehavior error_behavior, On ...
5 years, 6 months ago (2015-06-24 06:02:22 UTC) #17
tzik
lgtm
5 years, 6 months ago (2015-06-24 07:17:19 UTC) #18
yawano
On 2015/06/24 07:17:19, tzik wrote: > lgtm Thank you!
5 years, 6 months ago (2015-06-24 07:17:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1194783002/100001
5 years, 6 months ago (2015-06-24 07:18:18 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-24 07:22:47 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 07:23:48 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/77af6f93cbd761e70e254d6b353403266aeaa8bd
Cr-Commit-Position: refs/heads/master@{#335883}

Powered by Google App Engine
This is Rietveld 408576698