DescriptionRemove ash::window::Show() from BaseLayoutManager::OnWindowActivated
This fixes the debug crash here:
DCHECK(!wm::IsWindowMinimized(gained_active))
This is testing kShowStateKey that has not yet been changed to the expected value.
As far as I can tell, when called from OnWindowActivated is already from ash::window::Show
when window.cc calls into the delegate:
delegate_->OnWindowTargetVisibilityChanged(visible);
Which triggers BrowserView::RestoreFocus which triggers a cascade of focus notifications
ending up in aura::FocusManager::FocusWindow which calls ActivationController::ActivateWindow
which calls BaseLayoutManager::OnWindowActivated
In other word we re-enter and as a side effect the kShowStateKey has not yet been set.
Full stack in the bug.
BUG=166952
TEST=see bug
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175645
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Messages
Total messages: 8 (0 generated)
|