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

Issue 2856933005: [Sync] Create UserEventSyncBridge. (Closed)

Created:
3 years, 7 months ago by skym
Modified:
3 years, 7 months ago
Reviewers:
Patrick Noland
CC:
chromium-reviews, droger+watchlist_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, blundell+watchlist_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Create UserEventSyncBridge. This is the first step towards implementing UserEvents and integrating with Sync. This CL adds a ModelTypeSyncBridge implementation, but it is never instantiated or called, yet. While adding unit tests for UserEventSyncBridge, I added ModelTypeSyncBridge::ChangeProcessorFactory which was usable in both auto complete and device info sync bridge unit tests. BUG=701032 Review-Url: https://codereview.chromium.org/2856933005 Cr-Commit-Position: refs/heads/master@{#469829} Committed: https://chromium.googlesource.com/chromium/src/+/647aa09a706ee13efc535c94698e09559ce6d595

Patch Set 1 #

Patch Set 2 : Removed commented out code. #

Patch Set 3 : Added base::Unretained to fix compile. #

Patch Set 4 : Trying std::move to fix implicit up cast of unique_ptr. #

Total comments: 14

Patch Set 5 : [Sync] Create UserEventSyncBridge. #

Patch Set 6 : Removing autocomplete_sync_bridge_unittest.cc from cl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -41 lines) Patch
M components/sync/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/device_info/device_info_sync_bridge_unittest.cc View 13 chunks +27 lines, -39 lines 0 comments Download
M components/sync/model/model_type_store_test_util.h View 1 chunk +4 lines, -1 line 0 comments Download
M components/sync/model/model_type_store_test_util.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/sync/model/recording_model_type_change_processor.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M components/sync/model/recording_model_type_change_processor.cc View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M components/sync/protocol/user_event_specifics.proto View 1 chunk +4 lines, -0 lines 0 comments Download
A components/sync/user_events/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_sync_bridge.h View 1 chunk +65 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_sync_bridge.cc View 1 2 3 4 1 chunk +214 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_sync_bridge_unittest.cc View 1 2 3 4 1 chunk +133 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (26 generated)
skym
PTAL pnoland@ - c/sync/* mathp@ - c/autofill/*
3 years, 7 months ago (2017-05-03 15:59:32 UTC) #16
Patrick Noland
https://codereview.chromium.org/2856933005/diff/60001/components/sync/model/recording_model_type_change_processor.cc File components/sync/model/recording_model_type_change_processor.cc (right): https://codereview.chromium.org/2856933005/diff/60001/components/sync/model/recording_model_type_change_processor.cc#newcode17 components/sync/model/recording_model_type_change_processor.cc:17: std::unique_ptr<ModelTypeChangeProcessor> SideAssignNewProcessor( Given that this 1) creates a new ...
3 years, 7 months ago (2017-05-04 19:43:19 UTC) #19
skym
Updates for Patrick. https://codereview.chromium.org/2856933005/diff/60001/components/sync/model/recording_model_type_change_processor.cc File components/sync/model/recording_model_type_change_processor.cc (right): https://codereview.chromium.org/2856933005/diff/60001/components/sync/model/recording_model_type_change_processor.cc#newcode17 components/sync/model/recording_model_type_change_processor.cc:17: std::unique_ptr<ModelTypeChangeProcessor> SideAssignNewProcessor( On 2017/05/04 19:43:18, Patrick ...
3 years, 7 months ago (2017-05-04 20:34:00 UTC) #21
Patrick Noland
lgtm
3 years, 7 months ago (2017-05-04 20:38:06 UTC) #23
skym
Friendly ping! Just a single unit test file for you to look at mathp@ :)
3 years, 7 months ago (2017-05-05 16:15:49 UTC) #26
skym
Removing autocomplete_sync_bridge_unittest.cc from cl.
3 years, 7 months ago (2017-05-05 21:51:13 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/2856933005/120001
3 years, 7 months ago (2017-05-05 21:52:33 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 00:34:15 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/647aa09a706ee13efc535c94698e...

Powered by Google App Engine
This is Rietveld 408576698