Chromium Code Reviews
Description[Extensions] Don't remove the bookmark drag event router as delegate
Previously, the BookmarkManagerPrivateDragEventRouter removed itself as
the BookmarkTabHelper's delegate on destruction. Since
crrev.com/a32a0900c104b2143e6462febc81e6900dbd2104, both the event router
and the BookmarkTabHelper are WebContentsUserData, and thus will be
destroyed at the "same" time (that is, synchronously - if the
BookmarkTabHelper tried to access the
BookmarkManagerPrivateDragEventRouter in its dtor, it's unsafe, but
hopefully we never do that). Don't remove the
BookmarkManagerPrivateDragEventRouter as a delegate since there's a
chance the BookmarkTabHelper has already been destroyed.
BUG=664371
BUG=664419
Committed: https://crrev.com/62fa72cbd02ff4e279efe12145dd4b1a3d221821
Cr-Commit-Position: refs/heads/master@{#431607}
Patch Set 1 #
Messages
Total messages: 14 (9 generated)
|
|||||||||||||||||||