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

Issue 2593803002: Make sync's change processors sequence-affine. (Closed)

Created:
4 years ago by fdoray
Modified:
4 years ago
Reviewers:
maxbogue, gab, stanisc
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sync's change processors sequence-affine. These classes are thread-unsafe not thread-affine. They require external synchronization between tasks; which a sequence brings them implicitly. They do not need to be used from a single thread. Note: Classes that do not depend on a constant thread id (implies that they do not use thread-local storage) are usually not thread-affine. BUG=675800, 675631 Committed: https://crrev.com/ab2ab7ec3a72fcb6c023f0ccbf7971af1031805a Cr-Commit-Position: refs/heads/master@{#440195}

Patch Set 1 #

Total comments: 6

Patch Set 2 : CR gab #3 #

Total comments: 6

Patch Set 3 : CR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -40 lines) Patch
M components/sync/driver/generic_change_processor.h View 3 chunks +6 lines, -5 lines 0 comments Download
M components/sync/driver/generic_change_processor.cc View 9 chunks +13 lines, -13 lines 0 comments Download
M components/sync/driver/shared_change_processor.h View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
M components/sync/driver/shared_change_processor.cc View 11 chunks +16 lines, -15 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
gab
lgtm w/ comments, also added a CL desc, thanks :) https://codereview.chromium.org/2593803002/diff/1/components/sync/driver/shared_change_processor.cc File components/sync/driver/shared_change_processor.cc (right): https://codereview.chromium.org/2593803002/diff/1/components/sync/driver/shared_change_processor.cc#newcode10 ...
4 years ago (2016-12-20 20:11:29 UTC) #3
fdoray
https://codereview.chromium.org/2593803002/diff/1/components/sync/driver/shared_change_processor.cc File components/sync/driver/shared_change_processor.cc (right): https://codereview.chromium.org/2593803002/diff/1/components/sync/driver/shared_change_processor.cc#newcode10 components/sync/driver/shared_change_processor.cc:10: #include "base/threading/thread_task_runner_handle.h" On 2016/12/20 20:11:29, gab wrote: > rm? ...
4 years ago (2016-12-20 20:34:39 UTC) #5
fdoray
maxbogue@: PTAL
4 years ago (2016-12-20 20:35:29 UTC) #7
fdoray
+stanisc@: PTAL (maxbogue@ OOO)
4 years ago (2016-12-21 15:59:13 UTC) #11
stanisc
lgtm with a couple of suggestions to consider https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/generic_change_processor.h File components/sync/driver/generic_change_processor.h (left): https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/generic_change_processor.h#oldcode51 components/sync/driver/generic_change_processor.h:51: public ...
4 years ago (2016-12-21 18:48:09 UTC) #16
gab
https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/generic_change_processor.h File components/sync/driver/generic_change_processor.h (left): https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/generic_change_processor.h#oldcode51 components/sync/driver/generic_change_processor.h:51: public base::NonThreadSafe { On 2016/12/21 18:48:09, stanisc wrote: > ...
4 years ago (2016-12-21 18:52:17 UTC) #17
stanisc
https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/shared_change_processor.h File components/sync/driver/shared_change_processor.h (right): https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/shared_change_processor.h#newcode147 components/sync/driver/shared_change_processor.h:147: // The sequence that all methods except the constructor, ...
4 years ago (2016-12-21 18:57:27 UTC) #18
fdoray
https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/shared_change_processor.h File components/sync/driver/shared_change_processor.h (right): https://codereview.chromium.org/2593803002/diff/20001/components/sync/driver/shared_change_processor.h#newcode147 components/sync/driver/shared_change_processor.h:147: // The sequence that all methods except the constructor, ...
4 years ago (2016-12-21 19:12:51 UTC) #19
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/2593803002/40001
4 years ago (2016-12-21 19:13:35 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-21 20:11:26 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-21 20:13:05 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ab2ab7ec3a72fcb6c023f0ccbf7971af1031805a
Cr-Commit-Position: refs/heads/master@{#440195}

Powered by Google App Engine
This is Rietveld 408576698