| Index: ash/common/wm/fullscreen_window_finder.cc
|
| diff --git a/ash/common/wm/fullscreen_window_finder.cc b/ash/common/wm/fullscreen_window_finder.cc
|
| index 9529e42b344270d6a277986be3620048ee867c83..d82848a0775407f1e400e427d861907eab29f772 100644
|
| --- a/ash/common/wm/fullscreen_window_finder.cc
|
| +++ b/ash/common/wm/fullscreen_window_finder.cc
|
| @@ -6,9 +6,9 @@
|
|
|
| #include "ash/common/wm/switchable_windows.h"
|
| #include "ash/common/wm/window_state.h"
|
| -#include "ash/common/wm_shell.h"
|
| #include "ash/common/wm_window.h"
|
| #include "ash/public/cpp/shell_window_ids.h"
|
| +#include "ash/wm/window_util.h"
|
| #include "ui/compositor/layer.h"
|
|
|
| namespace ash {
|
| @@ -16,7 +16,7 @@ namespace wm {
|
|
|
| WmWindow* GetWindowForFullscreenMode(WmWindow* context) {
|
| WmWindow* topmost_window = nullptr;
|
| - WmWindow* active_window = context->GetShell()->GetActiveWindow();
|
| + WmWindow* active_window = WmWindow::Get(GetActiveWindow());
|
| if (active_window &&
|
| active_window->GetRootWindow() == context->GetRootWindow() &&
|
| IsSwitchableContainer(active_window->GetParent())) {
|
|
|