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

Unified Diff: device/vr/vr_device_manager.cc

Issue 2361533003: Expose secure origin state to WebVR renderer (Closed)
Patch Set: Rebase 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
« no previous file with comments | « device/vr/vr_device_manager.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device_manager.cc
diff --git a/device/vr/vr_device_manager.cc b/device/vr/vr_device_manager.cc
index b6eee946289a20be3f08f5224b80d763f523306b..4cc825b6be5a29eed124e34f188829f786742f40 100644
--- a/device/vr/vr_device_manager.cc
+++ b/device/vr/vr_device_manager.cc
@@ -165,7 +165,8 @@ void VRDeviceManager::OnDeviceChanged(VRDisplayPtr device) {
}
bool VRDeviceManager::RequestPresent(VRServiceImpl* service,
- unsigned int index) {
+ unsigned int index,
+ bool secure_origin) {
// Is anything presenting currently?
if (presenting_service_) {
// Should never have a presenting service without a presenting device.
@@ -198,7 +199,7 @@ bool VRDeviceManager::RequestPresent(VRServiceImpl* service,
// Attempt to begin presenting to this device. This could fail for any number
// of device-specific reasons.
- if (!requested_device->RequestPresent())
+ if (!requested_device->RequestPresent(secure_origin))
return false;
// Successfully began presenting!
« no previous file with comments | « device/vr/vr_device_manager.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698