| Index: chrome/browser/ui/views/extensions/extension_popup.cc
|
| diff --git a/chrome/browser/ui/views/extensions/extension_popup.cc b/chrome/browser/ui/views/extensions/extension_popup.cc
|
| index 4920c42ee170abd9a4a72f74da47a8bee5b21041..53d089500ec688e51881dd3b17bc44446486b63b 100644
|
| --- a/chrome/browser/ui/views/extensions/extension_popup.cc
|
| +++ b/chrome/browser/ui/views/extensions/extension_popup.cc
|
| @@ -30,6 +30,7 @@
|
| #if defined(USE_AURA)
|
| #include "ui/aura/client/activation_client.h"
|
| #include "ui/aura/window.h"
|
| +#include "ui/views/corewm/transient_window_manager.h"
|
| #include "ui/views/corewm/window_animations.h"
|
| #endif
|
|
|
| @@ -187,7 +188,7 @@ void ExtensionPopup::OnWindowActivated(aura::Window* gained_active,
|
| if (!inspect_with_devtools_ && anchor_window == gained_active &&
|
| host_desktop_type != chrome::HOST_DESKTOP_TYPE_ASH &&
|
| this_window->GetRootWindow() == anchor_window->GetRootWindow() &&
|
| - gained_active->transient_parent() != this_window)
|
| + views::corewm::GetTransientParent(gained_active) != this_window)
|
| GetWidget()->Close();
|
| }
|
| #endif
|
|
|