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

Unified Diff: device/vr/android/gvr/gvr_device.cc

Issue 2746233002: Fixes 2D-to-WebVR site transitions when browsing in VR. (Closed)
Patch Set: Fixed export Created 3 years, 9 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/android/gvr/gvr_device.h ('k') | device/vr/test/fake_vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device.cc
diff --git a/device/vr/android/gvr/gvr_device.cc b/device/vr/android/gvr/gvr_device.cc
index c0b8e5a032759b6e9b098007dba77ab81e7f0764..19238a19dfb03f2b74702cc2d67b0c21b7f6f750 100644
--- a/device/vr/android/gvr/gvr_device.cc
+++ b/device/vr/android/gvr/gvr_device.cc
@@ -24,13 +24,13 @@ GvrDevice::GvrDevice(GvrDeviceProvider* provider)
GvrDevice::~GvrDevice() {}
-void GvrDevice::GetVRDevice(
- const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) {
+void GvrDevice::CreateVRDisplayInfo(
+ const base::Callback<void(mojom::VRDisplayInfoPtr)>& on_created) {
GvrDelegate* delegate = GetGvrDelegate();
if (delegate) {
- delegate->CreateVRDisplayInfo(callback, id());
+ delegate->CreateVRDisplayInfo(on_created, id());
} else {
- callback.Run(mojom::VRDisplayInfoPtr(nullptr));
+ on_created.Run(nullptr);
}
}
« no previous file with comments | « device/vr/android/gvr/gvr_device.h ('k') | device/vr/test/fake_vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698