Index: ash/test/display_manager_test_api.cc |
diff --git a/ash/test/display_manager_test_api.cc b/ash/test/display_manager_test_api.cc |
index 8de31dca765595539c2be501651366055d70607a..af757d833ce4d07b88bc6d3756a7c9d454539853 100644 |
--- a/ash/test/display_manager_test_api.cc |
+++ b/ash/test/display_manager_test_api.cc |
@@ -59,14 +59,13 @@ std::vector<DisplayInfo> CreateDisplayInfoListFromString( |
bool DisplayManagerTestApi::TestIfMouseWarpsAt( |
ui::test::EventGenerator& event_generator, |
const gfx::Point& point_in_screen) { |
- aura::Window* context = Shell::GetAllRootWindows()[0]; |
DCHECK(!Shell::GetInstance()->display_manager()->IsInUnifiedMode()); |
static_cast<ExtendedMouseWarpController*>( |
Shell::GetInstance() |
->mouse_cursor_filter() |
->mouse_warp_controller_for_test()) |
->allow_non_native_event_for_test(); |
- gfx::Screen* screen = gfx::Screen::GetScreenFor(context); |
+ gfx::Screen* screen = gfx::Screen::GetScreen(); |
gfx::Display original_display = |
screen->GetDisplayNearestPoint(point_in_screen); |
event_generator.MoveMouseTo(point_in_screen); |