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

Issue 2402153002: Add CompoundSyncable class for synchronizing containers of Syncables. (Closed)

Created:
4 years, 2 months ago by Kevin M
Modified:
4 years, 2 months ago
Reviewers:
scf, steimel, Wez, CJ
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CompoundSyncable class for synchronizing containers of Syncables. * Add RegisteredMember subclass for compiler-enforced constructor time registration of child Syncables. * Integrate CompoundSyncable in sample unit tests. R=scf@chromium.org,lethalantidote@chromium.org CC=wez@chromium.org BUG= Committed: https://crrev.com/014a234f156e8f8002845d6d7ca2894fbaa231ac Cr-Commit-Position: refs/heads/master@{#426874}

Patch Set 1 #

Total comments: 5

Patch Set 2 : added laggard files #

Total comments: 13

Patch Set 3 : added a registry #

Total comments: 8

Patch Set 4 : WIP patch #

Patch Set 5 : much rebasery #

Total comments: 28

Patch Set 6 : scf feedback #

Patch Set 7 : wez feedback #

Total comments: 15

Patch Set 8 : . #

Patch Set 9 : break Syncable interface changes out into separate CL #

Total comments: 20

Patch Set 10 : wez feedback #

Total comments: 2

Patch Set 11 : LwwRegister fix #

Patch Set 12 : Rebase to include RevisionGenerator. Fixed flakiness from LwwRegisterTest not cleaning up after its… #

Patch Set 13 : make literal unsigned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -262 lines) Patch
M blimp/helium/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
A blimp/helium/compound_syncable.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +88 lines, -0 lines 0 comments Download
A blimp/helium/compound_syncable.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +93 lines, -0 lines 0 comments Download
A blimp/helium/compound_syncable_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +114 lines, -0 lines 0 comments Download
M blimp/helium/errors.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M blimp/helium/helium_test.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -2 lines 0 comments Download
M blimp/helium/lww_register.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -4 lines 0 comments Download
M blimp/helium/lww_register_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M blimp/helium/result_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M blimp/helium/revision_generator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
D blimp/helium/syncable_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -240 lines 0 comments Download
M blimp/helium/version_vector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (14 generated)
Kevin M
4 years, 2 months ago (2016-10-08 00:08:51 UTC) #1
scf
https://codereview.chromium.org/2402153002/diff/1/blimp/net/helium/helium_errors.h File blimp/net/helium/helium_errors.h (right): https://codereview.chromium.org/2402153002/diff/1/blimp/net/helium/helium_errors.h#newcode16 blimp/net/helium/helium_errors.h:16: // Generic error if the interpreter encountered unexpected input. ...
4 years, 2 months ago (2016-10-08 00:28:27 UTC) #2
CJ
lgtm https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.h#newcode73 blimp/net/helium/syncable.h:73: // This is before calling CreateChangesetToCurrent to give ...
4 years, 2 months ago (2016-10-08 00:47:13 UTC) #3
steimel
https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.cc#newcode38 blimp/net/helium/syncable.cc:38: On 2016/10/08 00:28:27, scf wrote: > add CHECK(changed_count > ...
4 years, 2 months ago (2016-10-10 17:31:17 UTC) #5
Kevin M
This weekend I had an idea of how to clean this up even more, will ...
4 years, 2 months ago (2016-10-10 17:47:28 UTC) #6
Kevin M
https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/20001/blimp/net/helium/syncable.cc#newcode38 blimp/net/helium/syncable.cc:38: On 2016/10/08 00:28:27, scf wrote: > add CHECK(changed_count > ...
4 years, 2 months ago (2016-10-10 20:30:19 UTC) #7
Kevin M
+wez
4 years, 2 months ago (2016-10-10 20:32:06 UTC) #9
scf
https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc#newcode50 blimp/net/helium/syncable.cc:50: changeset->WriteTag(i + 1); // PB tags are 1-indexed. not ...
4 years, 2 months ago (2016-10-11 16:53:57 UTC) #10
scf
https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.h File blimp/net/helium/syncable.h (right): https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.h#newcode59 blimp/net/helium/syncable.h:59: const VersionVector& from, change this to Revision? https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.h#newcode73 blimp/net/helium/syncable.h:73: ...
4 years, 2 months ago (2016-10-17 20:04:08 UTC) #11
scf
lgtm will address those issues in a separate cl
4 years, 2 months ago (2016-10-17 20:06:15 UTC) #12
scf
lgtm will address those issues in a separate cl
4 years, 2 months ago (2016-10-17 20:06:16 UTC) #13
Kevin M
https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc#newcode50 blimp/net/helium/syncable.cc:50: changeset->WriteTag(i + 1); // PB tags are 1-indexed. On ...
4 years, 2 months ago (2016-10-17 20:15:58 UTC) #14
Kevin M
https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/40001/blimp/net/helium/syncable.cc#newcode50 blimp/net/helium/syncable.cc:50: changeset->WriteTag(i + 1); // PB tags are 1-indexed. On ...
4 years, 2 months ago (2016-10-17 20:15:59 UTC) #15
Wez
Some initial comments :) https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc#newcode35 blimp/net/helium/syncable.cc:35: // using a bit array ...
4 years, 2 months ago (2016-10-18 01:39:11 UTC) #16
scf
https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc#newcode50 blimp/net/helium/syncable.cc:50: changeset->WriteTag(i + 1); // PB tags are 1-indexed. On ...
4 years, 2 months ago (2016-10-18 16:48:28 UTC) #17
Kevin M
https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc File blimp/net/helium/syncable.cc (right): https://codereview.chromium.org/2402153002/diff/80001/blimp/net/helium/syncable.cc#newcode35 blimp/net/helium/syncable.cc:35: // using a bit array stored in a string. ...
4 years, 2 months ago (2016-10-18 21:46:26 UTC) #18
scf
https://codereview.chromium.org/2402153002/diff/120001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/120001/blimp/helium/compound_syncable.cc#newcode39 blimp/helium/compound_syncable.cc:39: int prev_bytes_written = changeset->ByteCount(); don't you have to have ...
4 years, 2 months ago (2016-10-18 22:08:47 UTC) #19
Kevin M
https://codereview.chromium.org/2402153002/diff/120001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/120001/blimp/helium/compound_syncable.cc#newcode39 blimp/helium/compound_syncable.cc:39: int prev_bytes_written = changeset->ByteCount(); On 2016/10/18 22:08:47, scf wrote: ...
4 years, 2 months ago (2016-10-18 22:27:55 UTC) #20
scf
lgtm
4 years, 2 months ago (2016-10-18 22:36:26 UTC) #21
scf
lgtm
4 years, 2 months ago (2016-10-18 22:36:29 UTC) #22
Wez
https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc#newcode26 blimp/helium/compound_syncable.cc:26: // The bits for unmodified members_ are left as ...
4 years, 2 months ago (2016-10-19 22:54:25 UTC) #23
Kevin M
https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc#newcode26 blimp/helium/compound_syncable.cc:26: // The bits for unmodified members_ are left as ...
4 years, 2 months ago (2016-10-19 23:22:44 UTC) #24
Wez
lgtm https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc#newcode26 blimp/helium/compound_syncable.cc:26: // The bits for unmodified members_ are left ...
4 years, 2 months ago (2016-10-20 21:22:32 UTC) #25
Kevin M
https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc File blimp/helium/compound_syncable.cc (right): https://codereview.chromium.org/2402153002/diff/160001/blimp/helium/compound_syncable.cc#newcode26 blimp/helium/compound_syncable.cc:26: // The bits for unmodified members_ are left as ...
4 years, 2 months ago (2016-10-20 23:18:50 UTC) #28
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/2402153002/200001
4 years, 2 months ago (2016-10-20 23:21:52 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/91314) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-20 23:24:51 UTC) #33
Kevin M
Made some misc. fixes to LwwRegister and flakiness due to RevisionGenerator global state not being ...
4 years, 2 months ago (2016-10-20 23:45:38 UTC) #34
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/2402153002/220001
4 years, 2 months ago (2016-10-20 23:46:52 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/302547)
4 years, 2 months ago (2016-10-21 00:38:15 UTC) #39
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/2402153002/240001
4 years, 2 months ago (2016-10-21 16:54:19 UTC) #42
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-10-21 20:21:39 UTC) #44
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 20:24:10 UTC) #46
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/014a234f156e8f8002845d6d7ca2894fbaa231ac
Cr-Commit-Position: refs/heads/master@{#426874}

Powered by Google App Engine
This is Rietveld 408576698