Chromium Code Reviews
DescriptionStop MenuItemView From Directly Caching MenuController
When a MenuController closes its associated Widget is destroyed later on the
MessageLoop. Due to this it is possible for a MenuHostRootView to receive input
while the associated MenuController has been destroyed.
MenuHostRootView accesses the MenuController through MenuItemView which simply
caches it. This change updates MenuItemView to take a WeakPtr to the controller.
TEST=MenuControllerTest.HostReceivesInputBeforeDestruction
BUG=690097
Review-Url: https://codereview.chromium.org/2684993009
Cr-Commit-Position: refs/heads/master@{#449663}
Committed: https://chromium.googlesource.com/chromium/src/+/549b48a07f5ac2def1b8ad0549f3fddaf67b7ff5
Patch Set 1 #
Messages
Total messages: 17 (12 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||