Index: ui/views/mouse_watcher_view_host.cc |
diff --git a/ui/views/mouse_watcher_view_host.cc b/ui/views/mouse_watcher_view_host.cc |
index 54412cf10d5613531c6abcd1490d2301bc006b16..ac02b3cf4bf8c72b7f3668bc0e68a7c265b6c353 100644 |
--- a/ui/views/mouse_watcher_view_host.cc |
+++ b/ui/views/mouse_watcher_view_host.cc |
@@ -49,8 +49,8 @@ bool MouseWatcherViewHost::IsMouseOverWindow() { |
if (!widget) |
return false; |
- return gfx::Screen::GetScreenFor(widget->GetNativeView())-> |
- GetWindowUnderCursor() == widget->GetNativeWindow(); |
+ return gfx::Screen::GetScreen()->GetWindowUnderCursor() == |
+ widget->GetNativeWindow(); |
} |
} // namespace views |