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

Unified Diff: third_party/WebKit/Source/modules/vr/VRController.cpp

Issue 1981233003: Finish migration from sameThreadBindForMojo to createBaseCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/modules/vr/VRController.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRController.cpp b/third_party/WebKit/Source/modules/vr/VRController.cpp
index 3e2ccb5527fd934e9ac3fe6e79034258ca42388d..2d0fdbff316eea6f0e7d57c3c3dccb19bb1994f7 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -47,7 +47,7 @@ void VRController::getDevices(std::unique_ptr<VRGetDevicesCallback> callback)
}
m_pendingGetDevicesCallbacks.append(std::move(callback));
- m_service->GetDevices(sameThreadBindForMojo(&VRController::OnGetDevices, this));
+ m_service->GetDevices(createBaseCallback(bind<mojo::WTFArray<mojom::blink::VRDeviceInfoPtr>>(&VRController::OnGetDevices, this)));
}
mojom::blink::VRSensorStatePtr VRController::getSensorState(unsigned index)

Powered by Google App Engine
This is Rietveld 408576698