|
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
Total comments: 21
Total comments: 6
Total comments: 2
Total comments: 2
|
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
|
Total messages: 17 (0 generated)
|