Chromium Code Reviews
DescriptionFix PreferenceConnectionManagerTeardown
It is possible for the teardown order of chrome to not be as expected.
PreferenceConnectionManager was expecting to live until profile destruction,
at which point it would close mojo connections.
However it is possible for the connection manager to be deleted early, Leaving
connections open. They would eventually close during shutdown, and attempt to
notify the now dead connection manager.
This change updates PreferenceConnectionManager to use the new StrongBindingSet.
This set handles removing of StrongBindings from the collection when connection
errors occur. Thus replacing the manual handling written in the connection
manager which had error prone base::Unretained(this). The connections are all
deleted when the PreferenceConnectionManager is destroyed.
TEST=manual testing with asan builds
BUG=687933
Review-Url: https://codereview.chromium.org/2710733002
Cr-Commit-Position: refs/heads/master@{#452044}
Committed: https://chromium.googlesource.com/chromium/src/+/0932b390e4b08af8590e8553a7b2a1fc8ef9c99b
Patch Set 1 #
Total comments: 1
Messages
Total messages: 19 (8 generated)
|
||||||||||||||||||||||||||||