Chromium Code Reviews| Index: third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp |
| diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp |
| index aad047a65311b1f2ca510df3663b3f7b409e0bf5..a0dcf4b725bb5ed90989e34a09609dc64ee9c820 100644 |
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp |
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp |
| @@ -58,7 +58,8 @@ ScriptPromise NavigatorVRDevice::getVRDevices(ScriptState* scriptState) |
| return promise; |
| } |
| - controller()->getDevices(new VRGetDevicesCallback(resolver, m_hardwareUnits.get())); |
| + std::unique_ptr<VRGetDevicesCallback> callback(new VRGetDevicesCallback(resolver, m_hardwareUnits.get())); |
| + controller()->getDevices(std::move(callback)); |
|
esprehn
2016/05/06 03:14:53
You want to use WTF::wrapUnique here.
RaviKasibhatla
2016/05/06 09:15:49
Done.
|
| return promise; |
| } |