Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2374153002: Expose secure origin state to WebVR renderer (Closed)
Patch Set: Add missing "RequestPresent" argument to unit test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
}

Powered by Google App Engine
This is Rietveld 408576698