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

Issue 2915453002: Deprecate NonThreadSafe in components/sync in favor of SequenceChecker. (Closed)

Created:
3 years, 6 months ago by gab
Modified:
3 years, 6 months ago
Reviewers:
stanisc
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate NonThreadSafe in components/sync in favor of SequenceChecker. Note to crash team: This CL is a refactor and has no intended behavior change. This change was scripted by https://crbug.com/676387#c8. Note-worthy for the reviewer: * SequenceChecker enforces thread-safety but not thread-affinity! If the classes that were updated are thread-affine (use thread local storage or a third-party API that does) they should be migrated to ThreadChecker instead. * ~NonThreadSafe() used to implcitly check in its destructor ~Sequence/ThreadChecker() doesn't by design. To keep this CL a no-op, an explicit check was added to the destructor of migrated classes. * NonThreadSafe used to provide access to subclasses, as such the |sequence_checker_| member was made protected rather than private where necessary. BUG=676387 This CL was uploaded by git cl split. R=stanisc@chromium.org Review-Url: https://codereview.chromium.org/2915453002 Cr-Commit-Position: refs/heads/master@{#476015} Committed: https://chromium.googlesource.com/chromium/src/+/93f8b8a5cc48cc016c1979076b08d16d568c34f1

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -256 lines) Patch
M components/sync/base/sync_prefs.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/base/sync_prefs.cc View 8 chunks +31 lines, -31 lines 0 comments Download
M components/sync/base/weak_handle.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M components/sync/device_info/local_device_info_provider_impl.h View 2 chunks +5 lines, -3 lines 0 comments Download
M components/sync/device_info/local_device_info_provider_impl.cc View 4 chunks +11 lines, -9 lines 0 comments Download
M components/sync/engine/attachments/attachment_store_frontend.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/attachment_store_frontend.cc View 8 chunks +8 lines, -7 lines 0 comments Download
M components/sync/engine/attachments/fake_attachment_downloader.h View 2 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/fake_attachment_downloader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/engine/attachments/fake_attachment_uploader.h View 2 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/fake_attachment_uploader.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/in_memory_attachment_store.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/in_memory_attachment_store.cc View 7 chunks +11 lines, -9 lines 0 comments Download
M components/sync/engine/attachments/on_disk_attachment_store.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine/attachments/on_disk_attachment_store.cc View 7 chunks +10 lines, -8 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_downloader_impl.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_downloader_impl.cc View 4 chunks +7 lines, -5 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_downloader_impl_unittest.cc View 4 chunks +7 lines, -3 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_uploader_impl.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_uploader_impl.cc View 7 chunks +14 lines, -12 lines 0 comments Download
M components/sync/engine_impl/attachments/attachment_uploader_impl_unittest.cc View 10 chunks +24 lines, -14 lines 0 comments Download
M components/sync/engine_impl/js_mutation_event_observer.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/engine_impl/js_mutation_event_observer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl.h View 3 chunks +4 lines, -2 lines 0 comments Download
M components/sync/engine_impl/sync_scheduler_impl.cc View 33 chunks +38 lines, -38 lines 0 comments Download
M components/sync/model/attachments/attachment_service_proxy_unittest.cc View 6 chunks +15 lines, -11 lines 0 comments Download
M components/sync/model_impl/attachments/attachment_service_impl.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/model_impl/attachments/attachment_service_impl.cc View 10 chunks +13 lines, -12 lines 0 comments Download
M components/sync/model_impl/attachments/task_queue.h View 11 chunks +19 lines, -10 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.h View 3 chunks +4 lines, -2 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.cc View 8 chunks +17 lines, -17 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.h View 3 chunks +4 lines, -3 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 12 chunks +17 lines, -15 lines 0 comments Download
M components/sync/syncable/directory_backing_store.h View 3 chunks +4 lines, -2 lines 0 comments Download
M components/sync/syncable/directory_backing_store.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/sync/syncable/on_disk_directory_backing_store.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
gab
Hi, this is an automated change made by https://crbug.com/676387#c8 and sharded across directories for OWNERS. ...
3 years, 6 months ago (2017-05-29 19:22:18 UTC) #2
stanisc
Found one minor issue. https://codereview.chromium.org/2915453002/diff/1/components/sync/base/weak_handle.h File components/sync/base/weak_handle.h (right): https://codereview.chromium.org/2915453002/diff/1/components/sync/base/weak_handle.h#newcode21 components/sync/base/weak_handle.h:21: // SEQUENCE_CHECKER(sequence_checker_); It looks like ...
3 years, 6 months ago (2017-05-30 17:00:08 UTC) #7
gab
PTanL https://codereview.chromium.org/2915453002/diff/1/components/sync/base/weak_handle.h File components/sync/base/weak_handle.h (right): https://codereview.chromium.org/2915453002/diff/1/components/sync/base/weak_handle.h#newcode21 components/sync/base/weak_handle.h:21: // SEQUENCE_CHECKER(sequence_checker_); On 2017/05/30 17:00:08, stanisc wrote: > ...
3 years, 6 months ago (2017-05-31 17:42:23 UTC) #8
stanisc
lgtm
3 years, 6 months ago (2017-05-31 18:08:48 UTC) #11
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/2915453002/20001
3 years, 6 months ago (2017-05-31 18:20:41 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 20:54:28 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/93f8b8a5cc48cc016c1979076b08...

Powered by Google App Engine
This is Rietveld 408576698