Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Issue 11633029: Remove ash::window::Show() from BaseLayoutManager::OnWindowActivated (Closed)

Created:
8 years ago by cpu_(ooo_6.6-7.5)
Modified:
7 years, 11 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Remove 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M ash/wm/base_layout_manager.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
cpu_(ooo_6.6-7.5)
I have not tried with the new focus activation manager.
8 years ago (2012-12-19 23:48:32 UTC) #1
cpu_(ooo_6.6-7.5)
please take a look :)
7 years, 11 months ago (2013-01-07 22:05:50 UTC) #2
Ben Goodger (Google)
https://codereview.chromium.org/11633029/diff/1/ash/wm/base_layout_manager.cc File ash/wm/base_layout_manager.cc (left): https://codereview.chromium.org/11633029/diff/1/ash/wm/base_layout_manager.cc#oldcode157 ash/wm/base_layout_manager.cc:157: if (gained_active && wm::IsWindowMinimized(gained_active)) { Can you try running ...
7 years, 11 months ago (2013-01-07 22:10:18 UTC) #3
Ben Goodger (Google)
or rather, can you add to the conditional a check for views::corewm::UseFocusController() && ..
7 years, 11 months ago (2013-01-07 22:11:12 UTC) #4
cpu_(ooo_6.6-7.5)
On 2013/01/07 22:11:12, Ben Goodger (Google) wrote: > or rather, can you add to the ...
7 years, 11 months ago (2013-01-07 23:58:00 UTC) #5
Ben Goodger (Google)
Yes I think you broke something else.
7 years, 11 months ago (2013-01-08 21:00:15 UTC) #6
cpu_(ooo_6.6-7.5)
code updated please take another look.
7 years, 11 months ago (2013-01-08 23:47:53 UTC) #7
Ben Goodger (Google)
7 years, 11 months ago (2013-01-08 23:52:32 UTC) #8
thx lgtm

Powered by Google App Engine
This is Rietveld 408576698