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

Issue 61183003: Refactor SyncBackendHost (Closed)

Created:
7 years, 1 month ago by rlarocque
Modified:
7 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

Refactor SyncBackendHost Split SyncBackendHost into SyncBackendHost, SyncBackendHostImpl and SyncBackendHostCore. The SyncBackendHost class is now a pure virtual interface. It is the contains the interface exposed to the ProfileSyncService. The SyncBackendHostImpl class implements the functionality of the SyncBackendHost. It contains most of the code that used to reside in SyncBackendHost. The SyncBackendHostCore is the old SyncBackendHost::Core under a new name. It's been moved out of the SyncBackendHost's .cc file and into its own, publicly declared class. This will hopefully enable better testing in the future. This is a pure refactoring change. It should have no impact on program behavior. BUG=312999 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233533

Patch Set 1 #

Patch Set 2 : Remove double virtual #

Total comments: 25

Patch Set 3 : Some changes #

Patch Set 4 : Fix patch upload + fix some other issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2196 lines, -2724 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 7 chunks +48 lines, -421 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 3 1 chunk +2 lines, -1600 lines 0 comments Download
A chrome/browser/sync/glue/sync_backend_host_core.h View 3 1 chunk +295 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/sync_backend_host_core.cc View 1 2 3 1 chunk +622 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/sync_backend_host_impl.h View 1 2 3 1 chunk +326 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/sync_backend_host_impl.cc View 3 1 chunk +763 lines, -0 lines 0 comments Download
A + chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
D chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 2 3 1 chunk +0 lines, -691 lines 0 comments Download
A chrome/browser/sync/glue/sync_frontend.h View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
A + chrome/browser/sync/glue/sync_frontend.cc View 3 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 3 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
rlarocque
Please review.
7 years, 1 month ago (2013-11-06 16:10:27 UTC) #1
Nicolas Zea
https://codereview.chromium.org/61183003/diff/50001/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): https://codereview.chromium.org/61183003/diff/50001/chrome/browser/sync/glue/sync_backend_host.h#newcode40 chrome/browser/sync/glue/sync_backend_host.h:40: // An API to "host" the top level syncapi ...
7 years, 1 month ago (2013-11-06 18:03:20 UTC) #2
rlarocque
The latest patch fixes some of the issues. We should talk about the rest. https://codereview.chromium.org/61183003/diff/50001/chrome/browser/sync/glue/sync_backend_host.h ...
7 years, 1 month ago (2013-11-06 21:48:47 UTC) #3
Nicolas Zea
Btw, the unit test appears to have fallen out of the patch? Forget to git ...
7 years, 1 month ago (2013-11-06 22:18:24 UTC) #4
rlarocque
Patch updated. I've fixed the upload, too. Turns out I had the wrong upstream branch ...
7 years, 1 month ago (2013-11-06 22:48:47 UTC) #5
Nicolas Zea
lgtm
7 years, 1 month ago (2013-11-06 22:53:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/61183003/250001
7 years, 1 month ago (2013-11-06 23:13:07 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 07:50:00 UTC) #8
Message was sent while issue was closed.
Change committed as 233533

Powered by Google App Engine
This is Rietveld 408576698