| 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 e8a1b4af58e67ab63bbd0b48fff5c94ea2574dd1..cf1c2814a72c3d825aef395f5ce624a887035629 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -383,6 +383,10 @@ void VrShell::DrawWebVr() {
|
|
|
| glViewport(0, 0, render_size_.width, render_size_.height);
|
| vr_shell_renderer_->GetWebVrRenderer()->Draw(content_texture_id_);
|
| +
|
| + if (!webvr_secure_origin_) {
|
| + // TODO(klausw): Draw the insecure origin warning here.
|
| + }
|
| }
|
|
|
| void VrShell::OnPause(JNIEnv* env, const JavaParamRef<jobject>& obj) {
|
| @@ -405,6 +409,10 @@ void VrShell::SetWebVrMode(JNIEnv* env,
|
| webvr_mode_ = enabled;
|
| }
|
|
|
| +void VrShell::SetWebVRSecureOrigin(bool secure_origin) {
|
| + webvr_secure_origin_ = secure_origin;
|
| +}
|
| +
|
| void VrShell::SubmitWebVRFrame() {
|
| }
|
|
|
|
|