Index: ash/display/screen_position_controller_unittest.cc |
diff --git a/ash/display/screen_position_controller_unittest.cc b/ash/display/screen_position_controller_unittest.cc |
index ed5e3ca8c4ab100ec0f69b4cdcf3b012d289f365..7ef094dfc419ee86c79bc3350e7ab14dd4292a23 100644 |
--- a/ash/display/screen_position_controller_unittest.cc |
+++ b/ash/display/screen_position_controller_unittest.cc |
@@ -90,7 +90,8 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertNativePointToScreen) { |
const gfx::Point window_pos(100, 100); |
window_->SetBoundsInScreen(gfx::Rect(window_pos, gfx::Size(100, 100)), |
- gfx::Screen::GetDisplayNearestPoint(window_pos)); |
+ gfx::Screen::GetDisplayNearestPoint( |
+ ash::Shell::GetRootNativeView(), window_pos)); |
SetSecondaryDisplayLayout(DisplayLayout::RIGHT); |
// The point is on the primary root window. |
EXPECT_EQ("150,150", ConvertNativePointToScreen(50, 50)); |
@@ -127,7 +128,8 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertNativePointToScreen) { |
SetSecondaryDisplayLayout(DisplayLayout::RIGHT); |
const gfx::Point window_pos2(300, 100); |
window_->SetBoundsInScreen(gfx::Rect(window_pos2, gfx::Size(100, 100)), |
- gfx::Screen::GetDisplayNearestPoint(window_pos2)); |
+ gfx::Screen::GetDisplayNearestPoint( |
+ ash::Shell::GetRootNativeView(), window_pos2)); |
// The point is on the secondary display. |
EXPECT_EQ("350,150", ConvertNativePointToScreen(50, 50)); |
// The point is out of the all root windows. |