| 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 1917ddbef19bccb8195c63e9dc0a1d1bd400e840..f2c057d447fde1101e5f3403a050dd1b74cd9c39 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -28,6 +28,7 @@
|
| #include "chrome/browser/android/vr_shell/vr_input_manager.h"
|
| #include "chrome/browser/android/vr_shell/vr_shell_delegate.h"
|
| #include "chrome/browser/android/vr_shell/vr_shell_gl.h"
|
| +#include "chrome/browser/android/vr_shell/vr_tab_helper.h"
|
| #include "chrome/browser/android/vr_shell/vr_usage_monitor.h"
|
| #include "chrome/browser/android/vr_shell/vr_web_contents_observer.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -62,8 +63,16 @@ namespace {
|
| vr_shell::VrShell* g_instance;
|
|
|
| void SetIsInVR(content::WebContents* contents, bool is_in_vr) {
|
| - if (contents && contents->GetRenderWidgetHostView())
|
| + if (contents && contents->GetRenderWidgetHostView()) {
|
| + // TODO(asimjour) Contents should not be aware of VR mode. Instead, we
|
| + // should add a flag for disabling specific UI such as the keyboard (see
|
| + // VrTabHelper for details).
|
| contents->GetRenderWidgetHostView()->SetIsInVR(is_in_vr);
|
| +
|
| + VrTabHelper* vr_tab_helper = VrTabHelper::FromWebContents(contents);
|
| + DCHECK(vr_tab_helper);
|
| + vr_tab_helper->set_is_in_vr(is_in_vr);
|
| + }
|
| }
|
|
|
| void LoadControllerModelTask(
|
|
|