| 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..1b72cc4221ea5a665315719e16a4d5c6155c469b 100644
|
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "modules/vr/VRHardwareUnit.h"
|
| #include "modules/vr/VRHardwareUnitCollection.h"
|
| #include "modules/vr/VRPositionState.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -58,7 +59,7 @@ ScriptPromise NavigatorVRDevice::getVRDevices(ScriptState* scriptState)
|
| return promise;
|
| }
|
|
|
| - controller()->getDevices(new VRGetDevicesCallback(resolver, m_hardwareUnits.get()));
|
| + controller()->getDevices(WTF::wrapUnique(new VRGetDevicesCallback(resolver, m_hardwareUnits.get())));
|
|
|
| return promise;
|
| }
|
|
|