| Index: ash/common/wm/overview/window_grid.cc
|
| diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
|
| index 95219a312933623378ccc4fe5a5a49196d03197e..17c5ceb23b9058d3ed4dfb179b77c5e577ccbce6 100644
|
| --- a/ash/common/wm/overview/window_grid.cc
|
| +++ b/ash/common/wm/overview/window_grid.cc
|
| @@ -845,9 +845,8 @@ void WindowGrid::InitShieldWidget() {
|
| // synonymous with a black shelf background. Update this code if that
|
| // assumption is no longer valid.
|
| const float initial_opacity =
|
| - (root_window_->GetRootWindowController()
|
| - ->GetShelf()
|
| - ->GetBackgroundType() == SHELF_BACKGROUND_MAXIMIZED)
|
| + (WmShelf::ForWindow(root_window_)->GetBackgroundType() ==
|
| + SHELF_BACKGROUND_MAXIMIZED)
|
| ? 1.f
|
| : 0.f;
|
| shield_widget_.reset(CreateBackgroundWidget(
|
|
|