| Index: ash/wm/lock_layout_manager_unittest.cc
|
| diff --git a/ash/wm/lock_layout_manager_unittest.cc b/ash/wm/lock_layout_manager_unittest.cc
|
| index 6c0a35787546136fc6f69f4279a8204e2c6a58d1..8933a3f6b530020688e0999cff40c6f18ac779f2 100644
|
| --- a/ash/wm/lock_layout_manager_unittest.cc
|
| +++ b/ash/wm/lock_layout_manager_unittest.cc
|
| @@ -3,7 +3,6 @@
|
| // found in the LICENSE file.
|
|
|
| #include "ash/common/wm/window_state.h"
|
| -#include "ash/display/display_manager.h"
|
| #include "ash/public/cpp/shell_window_ids.h"
|
| #include "ash/root_window_controller.h"
|
| #include "ash/screen_util.h"
|
| @@ -13,6 +12,7 @@
|
| #include "base/command_line.h"
|
| #include "ui/aura/client/aura_constants.h"
|
| #include "ui/aura/window.h"
|
| +#include "ui/display/manager/display_manager.h"
|
| #include "ui/display/screen.h"
|
| #include "ui/keyboard/keyboard_controller.h"
|
| #include "ui/keyboard/keyboard_switches.h"
|
| @@ -212,17 +212,15 @@ TEST_F(LockLayoutManagerTest, KeyboardBounds) {
|
| keyboard::KEYBOARD_OVERSCROLL_OVERRIDE_DISABLED);
|
| ShowKeyboard(true);
|
| ShowKeyboard(false);
|
| - ash::DisplayManager* display_manager =
|
| - Shell::GetInstance()->display_manager();
|
| - display_manager->SetDisplayRotation(primary_display.id(),
|
| - display::Display::ROTATE_90,
|
| - display::Display::ROTATION_SOURCE_ACTIVE);
|
| + display_manager()->SetDisplayRotation(
|
| + primary_display.id(), display::Display::ROTATE_90,
|
| + display::Display::ROTATION_SOURCE_ACTIVE);
|
| primary_display = display::Screen::GetScreen()->GetPrimaryDisplay();
|
| screen_bounds = primary_display.bounds();
|
| EXPECT_EQ(screen_bounds.ToString(), window->GetBoundsInScreen().ToString());
|
| - display_manager->SetDisplayRotation(primary_display.id(),
|
| - display::Display::ROTATE_0,
|
| - display::Display::ROTATION_SOURCE_ACTIVE);
|
| + display_manager()->SetDisplayRotation(
|
| + primary_display.id(), display::Display::ROTATE_0,
|
| + display::Display::ROTATION_SOURCE_ACTIVE);
|
|
|
| // When virtual keyboard overscroll is disabled keyboard bounds do
|
| // affect window bounds.
|
|
|