|
[Sync] Move change-related methods out of SyncManager::Observer
Create new classes SyncManager::Change{Delegate,Observer} to handle
and observe changes.
Make SyncBackendRegistrar the SyncManager::ChangeDelegate.
Make SyncBackendHost call RefreshEncryption asynchronously and wait for it.
Also make the initialization state machine more explicit.
Remove the hack done to make use of observers_ in SyncManager::SyncInternal
almost thread-safe.
Comment which SyncManager member functions can be called from any thread.
Introduce helper struct WriteTransactionInfo and have DirectoryChangeDelegate
take that instead of just an EntryKernelMutationMap.
Beef up thread safety checks in SyncBackendHost.
Limit number of ChangeRecord -> value conversions done.
Move ChangeRecord unit tests into their own file.
BUG= 89658, 85481
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102169
Total comments: 1
Total comments: 6
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+794 lines, -607 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/sync_backend_host.h
|
View
|
1
2
3
|
10 chunks |
+40 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.cc
|
View
|
1
2
3
4
5
6
7
|
16 chunks |
+130 lines, -70 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar.h
|
View
|
|
4 chunks |
+22 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+44 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+45 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/change_record.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/change_record.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -18 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/internal_api/change_record_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+137 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/sync_manager.h
|
View
|
1
2
3
4
5
|
11 chunks |
+78 lines, -32 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/sync_manager.cc
|
View
|
1
2
3
4
5
|
45 chunks |
+125 lines, -141 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/internal_api/syncapi_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+13 lines, -148 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js/js_sync_manager_observer.h
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js/js_sync_manager_observer.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+27 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js/js_sync_manager_observer_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+4 lines, -42 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js/js_transaction_observer.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/js/js_transaction_observer.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/directory_change_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/syncable.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+47 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/syncable.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+47 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/syncable/transaction_observer.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/null_directory_change_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/null_directory_change_delegate.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|