Index: ui/views/controls/button/custom_button_unittest.cc |
diff --git a/ui/views/controls/button/custom_button_unittest.cc b/ui/views/controls/button/custom_button_unittest.cc |
index 7f784c2dc8d0f4c78e7858dcbe35c4eec84504ec..80144618bb1714db23a7d3e6e99ada3d4ea0e885 100644 |
--- a/ui/views/controls/button/custom_button_unittest.cc |
+++ b/ui/views/controls/button/custom_button_unittest.cc |
@@ -441,8 +441,7 @@ TEST_F(CustomButtonTest, AsCustomButton) { |
// Note: Ink drop is not hidden upon release because CustomButton descendants |
// may enter a different ink drop state. |
TEST_F(CustomButtonTest, ButtonClickTogglesInkDrop) { |
- gfx::Point old_cursor = gfx::Screen::GetScreenFor( |
- widget()->GetNativeView())->GetCursorScreenPoint(); |
+ gfx::Point old_cursor = gfx::Screen::GetScreen()->GetCursorScreenPoint(); |
CreateButtonWithInkDrop(); |
ui::test::EventGenerator generator(GetContext(), widget()->GetNativeWindow()); |
@@ -457,8 +456,7 @@ TEST_F(CustomButtonTest, ButtonClickTogglesInkDrop) { |
// Tests that pressing a button shows and releasing capture hides ink drop. |
TEST_F(CustomButtonTest, CaptureLossHidesInkDrop) { |
- gfx::Point old_cursor = gfx::Screen::GetScreenFor( |
- widget()->GetNativeView())->GetCursorScreenPoint(); |
+ gfx::Point old_cursor = gfx::Screen::GetScreen()->GetCursorScreenPoint(); |
CreateButtonWithInkDrop(); |
ui::test::EventGenerator generator(GetContext(), widget()->GetNativeWindow()); |