| Index: ash/screen_util.cc
|
| diff --git a/ash/screen_util.cc b/ash/screen_util.cc
|
| index f8e14d824b0acb9b9e13dc4c7d22281079b3ce57..0a0460e23c072a9f96e4155fcbf0c6d32fe03006 100644
|
| --- a/ash/screen_util.cc
|
| +++ b/ash/screen_util.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "ash/screen_util.h"
|
|
|
| -#include "ash/common/shelf/shelf_widget.h"
|
| +#include "ash/aura/wm_shelf_aura.h"
|
| #include "ash/display/display_manager.h"
|
| #include "ash/root_window_controller.h"
|
| #include "ash/shell.h"
|
| @@ -31,7 +31,8 @@ display::Display ScreenUtil::FindDisplayContainingPoint(
|
|
|
| // static
|
| gfx::Rect ScreenUtil::GetMaximizedWindowBoundsInParent(aura::Window* window) {
|
| - if (GetRootWindowController(window->GetRootWindow())->shelf_widget())
|
| + aura::Window* root_window = window->GetRootWindow();
|
| + if (GetRootWindowController(root_window)->wm_shelf_aura()->shelf_widget())
|
| return GetDisplayWorkAreaBoundsInParent(window);
|
| else
|
| return GetDisplayBoundsInParent(window);
|
|
|