| Index: ash/accelerators/accelerator_controller_unittest.cc
|
| diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
|
| index 5967a04113ccaf79941aaa1b2c04fa3edcdd4efe..b2eb9ca86b8cfbf2ea114ee89ce7b9fb9fe5d03c 100644
|
| --- a/ash/accelerators/accelerator_controller_unittest.cc
|
| +++ b/ash/accelerators/accelerator_controller_unittest.cc
|
| @@ -646,8 +646,9 @@ TEST_F(AcceleratorControllerTest, CenterWindowAccelerator) {
|
|
|
| // Center the window using accelerator.
|
| GetController()->PerformActionIfEnabled(WINDOW_POSITION_CENTER);
|
| - gfx::Rect work_area =
|
| - Shell::GetScreen()->GetDisplayNearestWindow(window.get()).work_area();
|
| + gfx::Rect work_area = gfx::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(window.get())
|
| + .work_area();
|
| gfx::Rect bounds = window->GetBoundsInScreen();
|
| EXPECT_NEAR(bounds.x() - work_area.x(),
|
| work_area.right() - bounds.right(),
|
|
|