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

Issue 2360703002: [Sync] Implements the loopback sync server. (Closed)

Created:
4 years, 3 months ago by pastarmovj
Modified:
4 years, 2 months ago
Reviewers:
asanka, pavely
CC:
chromium-reviews, cbentzel+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Implements the loopback sync server. The LoopbackServer implements a local sync server that keeps track of the synced data. It is not meant for concurent operation with multiple clients but rather serves as a persistent storage for the user profile e.g. for the purpose of using Chrome with roaming profiles on Windows. The implementation is based on the FakeSyncServer used for testing the sync client. BUG=650258 TEST=components_unittests:LoopbackServerTest.* Committed: https://crrev.com/b71840a8a2693a61d215fa29986f3a7d47315777 Cr-Commit-Position: refs/heads/master@{#426761}

Patch Set 1 #

Patch Set 2 : Clean up the code further. #

Patch Set 3 : Now with tests! #

Patch Set 4 : Fix clang errors. #

Patch Set 5 : Shuffle and rename stuff around. #

Total comments: 30

Patch Set 6 : Addressed comments. #

Total comments: 1

Patch Set 7 : Fix DEPS. #

Patch Set 8 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1506 lines, -341 lines) Patch
M components/sync/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/DEPS View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/loopback_connection_manager.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/loopback_connection_manager.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/loopback_server.h View 1 2 3 4 1 chunk +135 lines, -0 lines 0 comments Download
A + components/sync/engine_impl/loopback_server/loopback_server.cc View 1 2 3 4 5 6 7 20 chunks +147 lines, -320 lines 0 comments Download
A + components/sync/engine_impl/loopback_server/loopback_server_entity.h View 1 2 3 4 5 6 chunks +24 lines, -21 lines 0 comments Download
A components/sync/engine_impl/loopback_server/loopback_server_entity.cc View 1 2 3 4 5 6 7 1 chunk +184 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/loopback_server_unittest.cc View 1 2 3 4 5 1 chunk +185 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_bookmark_entity.h View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_bookmark_entity.cc View 1 2 3 4 5 1 chunk +149 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_permanent_entity.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_permanent_entity.cc View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_tombstone_entity.cc View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
A components/sync/engine_impl/loopback_server/persistent_unique_client_entity.cc View 1 2 3 4 5 1 chunk +92 lines, -0 lines 0 comments Download
M components/sync/engine_impl/syncer_proto_util.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A components/sync/protocol/loopback_server.proto View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M components/sync/protocol/protocol_sources.gni View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
pastarmovj
Hi Pavel, Please review this CL. It implements the LoopbackServer. It is branched off the ...
4 years, 2 months ago (2016-09-26 14:04:40 UTC) #9
pastarmovj
gentle ping? :)
4 years, 2 months ago (2016-09-30 07:22:15 UTC) #12
maxbogue
Hey Julian, I have some concerns with this :( - Would it be possible to ...
4 years, 2 months ago (2016-09-30 19:58:34 UTC) #14
skym
On 2016/09/30 19:58:34, maxbogue wrote: > Hey Julian, I have some concerns with this :( ...
4 years, 2 months ago (2016-10-03 15:31:14 UTC) #15
pastarmovj
On 2016/10/03 15:31:14, skym wrote: > On 2016/09/30 19:58:34, maxbogue wrote: > > Hey Julian, ...
4 years, 2 months ago (2016-10-04 15:08:50 UTC) #16
maxbogue
On 2016/10/04 15:08:50, pastarmovj wrote: > Thanks for the great comments to both of you! ...
4 years, 2 months ago (2016-10-04 21:29:45 UTC) #17
pastarmovj
Thanks for all the comments guys! I moved all new classes in engine_impl/loopback_server. I don't ...
4 years, 2 months ago (2016-10-05 12:21:45 UTC) #18
pavely
https://codereview.chromium.org/2360703002/diff/80001/components/sync/engine_impl/loopback_server/loopback_connection_manager.cc File components/sync/engine_impl/loopback_server/loopback_connection_manager.cc (right): https://codereview.chromium.org/2360703002/diff/80001/components/sync/engine_impl/loopback_server/loopback_connection_manager.cc#newcode8 components/sync/engine_impl/loopback_server/loopback_connection_manager.cc:8: #include "components/sync/syncable/directory.h" I don't think you need directory.h here. ...
4 years, 2 months ago (2016-10-06 23:48:46 UTC) #20
pastarmovj
Thanks for the great comments! https://codereview.chromium.org/2360703002/diff/80001/components/sync/engine_impl/loopback_server/loopback_connection_manager.cc File components/sync/engine_impl/loopback_server/loopback_connection_manager.cc (right): https://codereview.chromium.org/2360703002/diff/80001/components/sync/engine_impl/loopback_server/loopback_connection_manager.cc#newcode8 components/sync/engine_impl/loopback_server/loopback_connection_manager.cc:8: #include "components/sync/syncable/directory.h" On 2016/10/06 ...
4 years, 2 months ago (2016-10-13 14:13:40 UTC) #22
pastarmovj
ping? :)
4 years, 2 months ago (2016-10-19 09:46:31 UTC) #23
pavely
lgtm https://codereview.chromium.org/2360703002/diff/100001/components/sync/engine_impl/loopback_server/loopback_server_entity.cc File components/sync/engine_impl/loopback_server/loopback_server_entity.cc (right): https://codereview.chromium.org/2360703002/diff/100001/components/sync/engine_impl/loopback_server/loopback_server_entity.cc#newcode67 components/sync/engine_impl/loopback_server/loopback_server_entity.cc:67: default: You can handle UNKNOWN case with CHECK(false) ...
4 years, 2 months ago (2016-10-19 18:21:30 UTC) #24
pastarmovj
Adding asanka for DEPS of +net approval. Sync already uses net only this is a ...
4 years, 2 months ago (2016-10-20 16:23:22 UTC) #26
asanka
On 2016/10/20 at 16:23:22, pastarmovj wrote: > Adding asanka for DEPS of +net approval. > ...
4 years, 2 months ago (2016-10-20 21:50:48 UTC) #27
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/2360703002/160001
4 years, 2 months ago (2016-10-21 09:04:50 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 2 months ago (2016-10-21 10:14:02 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:28:32 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b71840a8a2693a61d215fa29986f3a7d47315777
Cr-Commit-Position: refs/heads/master@{#426761}

Powered by Google App Engine
This is Rietveld 408576698