chromeos: Fix shutdown crash in status area teardown on stylus devices
StatusAreaWidget::Shutdown() needs to manually remove all its child view to avoid layout problems during shutdown. The stylus palette tray view wasn't being removed. This should fix a crash in aura::WindowEventDispatcher::ReleaseNativeCapture during ash::Shell teardown that we're seeing on kevin. I added a DCHECK to ensure all views are being cleaned up and filed a bug to refactor this code so we don't have to clean up the views manually. Fixed FocusCycleTest so it doesn't add duplicate child views to the status area, which was tripping my DCHECK. BUG=700122 Review-Url: https://codereview.chromium.org/2745723002 Cr-Commit-Position: refs/heads/master@{#456104}
Showing
Please register or sign in to comment