Permalink
Browse files

Aura desktop: Really implement DesktopActivationClient::OnWillFocusWi…

…ndow().

This keeps the skyline focused during tab switching and fixes a shutdown
crasher.

BUG=125106
TEST=none


Review URL: http://codereview.chromium.org/10378002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135260 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information...
1 parent 54db993 commit 641ed62f6901e0fb6b998a335a12961a18f3634e erg@chromium.org committed May 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 ui/aura/desktop/desktop_activation_client.cc
@@ -66,8 +66,7 @@ aura::Window* DesktopActivationClient::GetActiveWindow() {
bool DesktopActivationClient::OnWillFocusWindow(Window* window,
const Event* event) {
- // TODO(erg): Is this OK? Logic is much more nuanced in ash.
- return true;
+ return CanActivateWindow(window);
}
void DesktopActivationClient::OnWindowFocused(aura::Window* window) {

0 comments on commit 641ed62

Please sign in to comment.