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

Issue 10701085: Revert "Revert 142517 - [Sync] Refactor sync configuration logic." (Closed)

Created:
8 years, 5 months ago by Nicolas Zea
Modified:
8 years, 5 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, cbentzel+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Revert "Revert 142517 - [Sync] Refactor sync configuration logic." Relanding with improved tests and support for cleaning up partial nigori. The original patch was reverted due to users who needed to download a new nigori node, but who had since been migrated. We do not handle migration before the backend is initialized, so we now go ahead and detect+delete partial nigori nodes before redownloading them. By blowing away the old progress marker, we're no longer at risk of receiving the migration done response. In order to test this the SyncBackendHost unit tests have been substantially upgraded. original review at: https://chromiumcodereview.appspot.com/10483015 BUG=129665, 133061, 133219 TEST=unit/integration tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146262

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Clean partial nigori. Refactor tests #

Patch Set 4 : Fix compile/test #

Total comments: 21

Patch Set 5 : Address comments #

Total comments: 6

Patch Set 6 : Address comments #

Patch Set 7 : Fix deps #

Total comments: 2

Patch Set 8 : Diff properly #

Patch Set 9 : Clean all partial types #

Patch Set 10 : Move logic to syncmanager. Split off test refactor #

Patch Set 11 : Add test #

Total comments: 2

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+823 lines, -568 lines) Patch
M chrome/browser/sync/glue/backend_data_type_configurer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl_unittest.cc View 1 3 4 5 6 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -46 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 3 4 5 6 7 8 9 10 11 12 chunks +159 lines, -228 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -29 lines 0 comments Download
M sync/engine/sync_scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +39 lines, -14 lines 0 comments Download
M sync/engine/sync_scheduler.cc View 1 3 4 5 6 8 9 10 11 13 chunks +157 lines, -93 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 3 4 5 6 8 9 10 11 15 chunks +118 lines, -73 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 1 3 4 5 6 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +31 lines, -18 lines 0 comments Download
M sync/internal_api/sync_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +106 lines, -52 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +125 lines, -1 line 0 comments Download
M sync/sync.gyp View 1 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/directory.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M sync/syncable/directory.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
M sync/syncable/syncable_mock.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A sync/test/callback_counter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nicolas Zea
This patch is diffed off patchset 2 (where I do the actual revert of my ...
8 years, 5 months ago (2012-07-04 02:05:51 UTC) #1
rlarocque
General comment: Why is the code careful about purging datatypes only when they're in a ...
8 years, 5 months ago (2012-07-04 06:39:34 UTC) #2
Nicolas Zea
On 2012/07/04 06:39:34, rlarocque wrote: > General comment: Why is the code careful about purging ...
8 years, 5 months ago (2012-07-09 18:40:45 UTC) #3
rlarocque
More comments. http://codereview.chromium.org/10701085/diff/2004/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10701085/diff/2004/chrome/browser/sync/glue/sync_backend_host.cc#newcode374 chrome/browser/sync/glue/sync_backend_host.cc:374: if (!StartSyncThread()) On 2012/07/09 18:40:45, nzea wrote: ...
8 years, 5 months ago (2012-07-09 19:22:58 UTC) #4
rlarocque
On 2012/07/09 18:40:45, nzea wrote: > On 2012/07/04 06:39:34, rlarocque wrote: > > General comment: ...
8 years, 5 months ago (2012-07-09 19:36:04 UTC) #5
Nicolas Zea
PTAL. Regarding blowing away all partial types, I'd like to hold off on making a ...
8 years, 5 months ago (2012-07-09 19:42:49 UTC) #6
rlarocque
http://codereview.chromium.org/10701085/diff/26001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10701085/diff/26001/chrome/browser/sync/glue/sync_backend_host.cc#newcode1218 chrome/browser/sync/glue/sync_backend_host.cc:1218: ConfigureDataTypes( On 2012/07/09 19:42:50, nzea wrote: > On 2012/07/09 ...
8 years, 5 months ago (2012-07-09 20:30:22 UTC) #7
Nicolas Zea
http://codereview.chromium.org/10701085/diff/37001/sync/engine/sync_scheduler.cc File sync/engine/sync_scheduler.cc (right): http://codereview.chromium.org/10701085/diff/37001/sync/engine/sync_scheduler.cc#newcode68 sync/engine/sync_scheduler.cc:68: ConfigurationParams::ConfigurationParams() On 2012/07/09 20:30:22, rlarocque wrote: > I'm confused. ...
8 years, 5 months ago (2012-07-09 20:47:06 UTC) #8
rlarocque
I still have some concerns about the test code, but I'll leave it to Fred ...
8 years, 5 months ago (2012-07-09 21:15:51 UTC) #9
Nicolas Zea
ping Fred?
8 years, 5 months ago (2012-07-10 17:09:52 UTC) #10
Nicolas Zea
Richard, the newest patchset includes the logic to cleanup all partial types to avoid any ...
8 years, 5 months ago (2012-07-11 00:27:26 UTC) #11
akalin
took a look. not too crazy about the FakeSyncManager/SyncManager stuff, although I can't seem to ...
8 years, 5 months ago (2012-07-11 02:39:59 UTC) #12
Nicolas Zea
-Fred, since I'm splitting off the SBH test refactor into a separate patch. Richard, PTAL. ...
8 years, 5 months ago (2012-07-11 22:26:37 UTC) #13
rlarocque
That's much better! LGTM with comment. http://codereview.chromium.org/10701085/diff/39004/sync/internal_api/public/sync_manager.h File sync/internal_api/public/sync_manager.h (right): http://codereview.chromium.org/10701085/diff/39004/sync/internal_api/public/sync_manager.h#newcode407 sync/internal_api/public/sync_manager.h:407: syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( Does ...
8 years, 5 months ago (2012-07-11 22:44:42 UTC) #14
Nicolas Zea
Landing once bots go green. http://codereview.chromium.org/10701085/diff/39004/sync/internal_api/public/sync_manager.h File sync/internal_api/public/sync_manager.h (right): http://codereview.chromium.org/10701085/diff/39004/sync/internal_api/public/sync_manager.h#newcode407 sync/internal_api/public/sync_manager.h:407: syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( On 2012/07/11 ...
8 years, 5 months ago (2012-07-11 23:04:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10701085/7030
8 years, 5 months ago (2012-07-11 23:45:07 UTC) #16
commit-bot: I haz the power
8 years, 5 months ago (2012-07-12 01:32:34 UTC) #17
Change committed as 146262

Powered by Google App Engine
This is Rietveld 408576698