| 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 2e8fba0709b366f185af5a76031929bcea3cb4e0..7a611b4ac33ce5658cf95de9593cac1e1e334bdd 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -473,8 +473,9 @@ void VrShell::RenderViewHostChanged(content::RenderViewHost* old_host,
|
| }
|
|
|
| void VrShell::MainFrameWasResized(bool width_changed) {
|
| - display::Display display = display::Screen::GetScreen()
|
| - ->GetDisplayNearestWindow(ui_contents_->GetNativeView());
|
| + display::Display display =
|
| + display::Screen::GetScreen()->GetDisplayNearestWindow(
|
| + ui_contents_->GetNativeView()->GetWindowAndroid());
|
| PostToGlThreadWhenReady(
|
| base::Bind(&VrShellGl::UIBoundsChanged, gl_thread_->GetVrShellGl(),
|
| display.size().width(), display.size().height()));
|
|
|