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

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

Issue 2049003002: Wrap GCed raw pointer parameters of WTF::bind with Persistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/wrapCrossThreadPersistent/wrapPersistent/ Created 4 years, 6 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 b3bce61997bc4105bd15648a9063121f75f0ef60..007409b9aa62cbddacb74d7516019389d867edd6 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::getDisplays(std::unique_ptr<VRGetDevicesCallback> callback)
}
m_pendingGetDevicesCallbacks.append(std::move(callback));
- m_service->GetDisplays(createBaseCallback(bind<mojo::WTFArray<device::blink::VRDisplayPtr>>(&VRController::onGetDisplays, this)));
+ m_service->GetDisplays(createBaseCallback(bind<mojo::WTFArray<device::blink::VRDisplayPtr>>(&VRController::onGetDisplays, wrapPersistent(this))));
}
device::blink::VRPosePtr VRController::getPose(unsigned index)

Powered by Google App Engine
This is Rietveld 408576698