|
[Sync] InvalidationService shouldn't CHECK when registering ObjectId for more than one handler
Before this change InvalidationService CHECKs that object id is only
registered with one handler. This causes browser crash when object id is
received from network already registered.
Solution is to let each component that uses InvalidationService decide
how to react to duplicate registration.
In this change:
- InvalidationService::UpdateRegisteredInvalidationIds doesn't CHECK
inside, but returns boolean that indicates if update was successful.
- All places that call this function do CHECK to preserve existing
behavior.
- Internal implementations and tests are updated accordingly.
BUG= 475941
R=maniscalco@chromium.org
Committed: https://crrev.com/8131d2b4b0c296269c8f1bb8e0ed9dfbd5e852ba
Cr-Commit-Position: refs/heads/master@{#330654}
Total comments: 8
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+155 lines, -134 lines) |
Patch |
 |
M |
chrome/browser/drive/drive_notification_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/fake_invalidation_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/fake_invalidation_service.cc
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/cloud_policy_invalidator.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/cloud_policy_invalidator.cc
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud/remote_commands_invalidator.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host_impl.cc
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/fake_server_invalidation_service.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/fake_server_invalidation_service.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/fake_invalidator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/fake_invalidator.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_notifier.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_notifier.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_service.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_service_android.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_service_android.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidation_service_test_template.h
|
View
|
1
|
7 chunks |
+36 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidator.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidator_registrar.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidator_registrar.cc
|
View
|
1
|
3 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidator_registrar_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -39 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/invalidator_test_template.h
|
View
|
|
7 chunks |
+34 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/non_blocking_invalidator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/non_blocking_invalidator.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/p2p_invalidation_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/p2p_invalidation_service.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/p2p_invalidator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/p2p_invalidator.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/ticl_invalidation_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/invalidation/ticl_invalidation_service.cc
|
View
|
|
4 chunks |
+12 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_client.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_listen_notifications.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 19 (5 generated)
|