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

Unified Diff: device/vr/test/fake_vr_device.cc

Issue 2658643003: Refactor GvrDelegate ownership into GvrDelegateProvider and fix more threading violations. (Closed)
Patch Set: Address comments Created 3 years, 11 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/test/fake_vr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/test/fake_vr_device.cc
diff --git a/device/vr/test/fake_vr_device.cc b/device/vr/test/fake_vr_device.cc
index d0853debfc5959f59cd3a31a528a9884790530df..c699905019dff22bee1b1b63e2c6d2f13e57e77e 100644
--- a/device/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -54,9 +54,10 @@ void FakeVRDevice::SetVRDevice(const mojom::VRDisplayInfoPtr& device) {
device_ = device.Clone();
}
-mojom::VRDisplayInfoPtr FakeVRDevice::GetVRDevice() {
+void FakeVRDevice::GetVRDevice(
+ const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) {
mojom::VRDisplayInfoPtr display = device_.Clone();
- return display.Clone();
+ callback.Run(std::move(display));
}
void FakeVRDevice::ResetPose() {}
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698