|
[Invalidations] Require there to be no registered handlers on Invalidator destruction
Add CHECK to catch sloppy clients.
Make ProfileSyncService destroy its invalidator registrar on shut down (also to catch
sloppy clients). Comment on expected usage of Initialize() and Shutdown(),
and add DCHECKs for them.
Fix Invalidator test template to unregister handlers properly. Also fix some ProfileSyncService tests.
BUG= 137086
TBR=tim@chromium.org,arv@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=160420
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+78 lines, -21 lines) |
Patch |
|
M |
chrome/browser/signin/signin_tracker_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sync/invalidation_frontend.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sync/profile_sync_service.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+18 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/sync/profile_sync_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/sync_setup_handler_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sync/notifier/invalidator.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
sync/notifier/invalidator_registrar.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sync/notifier/invalidator_registrar.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sync/notifier/invalidator_registrar_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+22 lines, -5 lines |
0 comments
|
Download
|
|
M |
sync/notifier/invalidator_test_template.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|