Index: content/browser/web_contents/web_contents_view_android.cc |
diff --git a/content/browser/web_contents/web_contents_view_android.cc b/content/browser/web_contents/web_contents_view_android.cc |
index 7129cc9e4eafa201090293faec300dbb1039da29..7791bf71393b68e80e6e7fc538730a33dfb5de02 100644 |
--- a/content/browser/web_contents/web_contents_view_android.cc |
+++ b/content/browser/web_contents/web_contents_view_android.cc |
@@ -159,7 +159,7 @@ void WebContentsViewAndroid::GetScreenInfo(ScreenInfo* result) const { |
gfx::NativeView native_view = GetNativeView(); |
display::Display display = |
native_view |
- ? display::Screen::GetScreen()->GetDisplayNearestWindow(native_view) |
+ ? display::Screen::GetScreen()->GetDisplayNearestView(native_view) |
: display::Screen::GetScreen()->GetPrimaryDisplay(); |
DisplayToScreenInfo(display, result); |
} |