|
Revert 150990 - [Sync] Avoid unregistering object IDs on shutdown
Add RegisterHandler() and UnregisterHandler(), which should be called before and after calls to UpdateRegisteredIds(). Use UnregisterHandler() on
shutdown instead of UpdateRegisteredIds(_, ObjectIdSet()).
Make SyncNotifierHelper non-thread-safe. Fix test breakages that this revealed. Also add GetAllRegisteredIds() instead of making it the return value of UpdateRegisteredIds().
Propagate UpdateRegisteredIds()/RegisterHandler()/UnregisterHandler() all
the way up to ProfileSyncService.
Make FakeSyncManager be created on the sync thread.
Clean up SyncBackendHost startup/shutdown behavior a bit.
BUG= 140325
Review URL: https://chromiumcodereview.appspot.com/10824161
TBR=akalin@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150992
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+204 lines, -1066 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/bridged_sync_notifier.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/bridged_sync_notifier.cc
|
View
|
|
1 chunk |
+1 line, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
|
View
|
|
4 chunks |
+9 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/chrome_sync_notification_bridge.h
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/chrome_sync_notification_bridge.cc
|
View
|
|
8 chunks |
+8 lines, -62 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc
|
View
|
|
4 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.h
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.cc
|
View
|
|
12 chunks |
+28 lines, -58 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_unittest.cc
|
View
|
|
10 chunks |
+26 lines, -80 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.h
|
View
|
|
3 chunks |
+10 lines, -48 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
|
4 chunks |
+7 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_unittest.cc
|
View
|
|
3 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_manager.h
|
View
|
|
1 chunk |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/fake_sync_manager.h
|
View
|
|
5 chunks |
+19 lines, -24 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
|
3 chunks |
+5 lines, -25 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
|
4 chunks |
+2 lines, -19 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/fake_sync_manager.cc
|
View
|
|
5 chunks |
+17 lines, -39 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier.h
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier.cc
|
View
|
|
2 chunks |
+6 lines, -15 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/invalidation_notifier_unittest.cc
|
View
|
|
6 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidation_notifier.h
|
View
|
|
4 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidation_notifier.cc
|
View
|
|
4 chunks |
+9 lines, -23 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/non_blocking_invalidation_notifier_unittest.cc
|
View
|
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_notifier.h
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_notifier.cc
|
View
|
|
5 chunks |
+5 lines, -18 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/p2p_notifier_unittest.cc
|
View
|
|
4 chunks |
+14 lines, -15 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/sync_notifier.h
|
View
|
|
1 chunk |
+3 lines, -37 lines |
0 comments
|
Download
|
 |
M |
sync/notifier/sync_notifier_factory_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
sync/notifier/sync_notifier_helper.h
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
sync/notifier/sync_notifier_helper.cc
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
sync/notifier/sync_notifier_helper_unittest.cc
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/sync_notifier_registrar.h
|
View
|
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/sync_notifier_registrar.cc
|
View
|
|
1 chunk |
+0 lines, -129 lines |
0 comments
|
Download
|
 |
D |
sync/notifier/sync_notifier_registrar_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -248 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_listen_notifications.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|