| 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 73ba89603e74d3e46372d56d37b0b4adec9c04ae..0eb5a06b11f81fa994bbdfaab47dfcca4781a223 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -405,6 +405,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) {
|
| @@ -445,6 +449,10 @@ void VrShell::SetWebVrMode(JNIEnv* env,
|
| webvr_mode_ = enabled;
|
| }
|
|
|
| +void VrShell::SetWebVRSecureOrigin(bool secure_origin) {
|
| + webvr_secure_origin_ = secure_origin;
|
| +}
|
| +
|
| void VrShell::SubmitWebVRFrame() {
|
| }
|
|
|
|
|