Index: chrome/browser/android/vr_shell/vr_shell.cc |
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc |
index efce6d11d4d9b15248ad05bbe95bf6748eb7868e..e827573e08cfb8e7ac874fc1e0760302ee9a11b0 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell.cc |
+++ b/chrome/browser/android/vr_shell/vr_shell.cc |
@@ -536,7 +536,7 @@ void VrShell::RenderViewHostChanged(content::RenderViewHost* old_host, |
void VrShell::MainFrameWasResized(bool width_changed) { |
display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow( |
+ display::Screen::GetScreen()->GetDisplayNearestView( |
ui_contents_->GetNativeView()); |
PostToGlThreadWhenReady( |
base::Bind(&VrShellGl::UIBoundsChanged, gl_thread_->GetVrShellGl(), |