Chromium Code Reviews
Descriptionmus: Fix ash::GetRootWindowController for child windows/widgets
Under mus there is one RootWindow per top-level widget, similar to desktop
aura. This means we can't just use the aura::Window's root to find the
RootWindowController -- sometimes it will be null. Instead we need to find
the display's root window's RootWindowController.
This has been a cause of crashes under mus. I looked into refactoring the
callers of GetRootWindowController(), but there are ~100 places in the code
that call into it, either directly or indirectly, and it seemed better to
fix it here.
BUG=607755
TEST=RootWindowControolerTest.GetRootWindowController, existing ash_unittests
Committed: https://crrev.com/5d74ac0d16386f72e1426107d78aba51c221c230
Cr-Commit-Position: refs/heads/master@{#393337}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review comments #
Messages
Total messages: 11 (3 generated)
|
|||||||||||||||||||||||||||||||||||||