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

Issue 19982002: sync: Remove SyncSourceInfo (Closed)

Created:
7 years, 5 months ago by rlarocque
Modified:
7 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

sync: Remove SyncSourceInfo The SyncSourceInfo was a struct that contained a GetUpdatesSource and a ModelTypeInvalidationMap. Both of these types are in the process of being deprecated. The SyncSourceInfo itself was used only for debugging (about:sync), tests (mostly sync_scheduler_unittest.cc) and maintaining compatibility with some old function signatures. Removing the SyncSourceInfo allow us to remove dependencies on ModelTypeInvalidationMap, which is a step towards enabling invalidation "trickles" support. BUG=233437 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215446

Patch Set 1 #

Patch Set 2 : Retry #

Patch Set 3 : Rebase #

Total comments: 16

Patch Set 4 : Review fixes #

Patch Set 5 : Remove "sources" from SyncScheduler unit tests #

Total comments: 1

Patch Set 6 : Convert SyncShareRecords to typedef #

Patch Set 7 : Convert SyncShareRecords to typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -575 lines) Patch
M chrome/browser/sync/about_sync_util.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/commit.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M sync/engine/download.h View 3 chunks +2 lines, -2 lines 0 comments Download
M sync/engine/download.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M sync/engine/download_unittest.cc View 2 chunks +14 lines, -6 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 6 chunks +5 lines, -17 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 5 41 chunks +153 lines, -266 lines 0 comments Download
M sync/engine/syncer.h View 1 2 3 2 chunks +22 lines, -3 lines 0 comments Download
M sync/engine/syncer.cc View 5 chunks +13 lines, -9 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 2 chunks +3 lines, -18 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/js_sync_manager_observer_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 1 2 3 5 chunks +8 lines, -5 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.cc View 1 2 3 5 chunks +11 lines, -8 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download
D sync/internal_api/public/sessions/sync_source_info.h View 1 chunk +0 lines, -42 lines 0 comments Download
M sync/internal_api/public/sessions/sync_source_info.cc View 1 1 chunk +0 lines, -35 lines 0 comments Download
M sync/internal_api/public/sessions/sync_source_info_unittest.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M sync/sessions/nudge_tracker.h View 2 chunks +0 lines, -6 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 2 chunks +0 lines, -30 lines 0 comments Download
M sync/sessions/nudge_tracker_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M sync/sessions/ordered_commit_set.h View 2 chunks +8 lines, -0 lines 0 comments Download
M sync/sessions/ordered_commit_set.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M sync/sessions/ordered_commit_set_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M sync/sessions/status_controller.h View 1 chunk +6 lines, -0 lines 0 comments Download
M sync/sessions/sync_session.h View 1 2 3 2 chunks +7 lines, -10 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 3 chunks +20 lines, -8 lines 0 comments Download
M sync/sessions/sync_session_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M sync/sessions/test_util.h View 1 chunk +16 lines, -8 lines 0 comments Download
M sync/sessions/test_util.cc View 1 chunk +16 lines, -8 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M sync/sync_tests.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M sync/test/engine/syncer_command_test.h View 1 chunk +2 lines, -18 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rlarocque
Strangely enough, this is related to the trickles work. The ModelTypeInvalidationMap is heading into obsolescence, ...
7 years, 5 months ago (2013-07-24 19:58:45 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/19982002/diff/14001/chrome/browser/sync/profile_sync_service_harness.cc File chrome/browser/sync/profile_sync_service_harness.cc (right): https://codereview.chromium.org/19982002/diff/14001/chrome/browser/sync/profile_sync_service_harness.cc#newcode505 chrome/browser/sync/profile_sync_service_harness.cc:505: snap.model_neutral_state().commit_request_types; Am I correct that we only need commit_request_types ...
7 years, 4 months ago (2013-08-01 17:16:38 UTC) #2
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/19982002/diff/14001/chrome/browser/sync/profile_sync_service_harness.cc File chrome/browser/sync/profile_sync_service_harness.cc (right): https://codereview.chromium.org/19982002/diff/14001/chrome/browser/sync/profile_sync_service_harness.cc#newcode505 chrome/browser/sync/profile_sync_service_harness.cc:505: snap.model_neutral_state().commit_request_types; On 2013/08/01 17:16:38, timsteele wrote: ...
7 years, 4 months ago (2013-08-01 21:01:41 UTC) #3
rlarocque
It turns out the SyncSchedulerTests didn't actually need to assert on the "sources" field, though ...
7 years, 4 months ago (2013-08-02 21:37:28 UTC) #4
tim (not reviewing)
lgtm https://codereview.chromium.org/19982002/diff/27001/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): https://codereview.chromium.org/19982002/diff/27001/sync/engine/sync_scheduler_unittest.cc#newcode52 sync/engine/sync_scheduler_unittest.cc:52: std::vector<TimeTicks> times; This could just be made a ...
7 years, 4 months ago (2013-08-02 22:49:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/19982002/33001
7 years, 4 months ago (2013-08-03 00:30:24 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-03 01:41:47 UTC) #7
Message was sent while issue was closed.
Change committed as 215446

Powered by Google App Engine
This is Rietveld 408576698