| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| index d3a2fe6e6b8a891c379a57a852a3548cce7e7bd5..e717ea2d9ac9385eb3a465496ea9a2978929e4e4 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
|
| @@ -13,10 +13,11 @@
|
| #include "modules/bluetooth/BluetoothRemoteGATTServer.h"
|
| #include "modules/bluetooth/BluetoothSupplement.h"
|
| #include "public/platform/modules/bluetooth/WebBluetooth.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| -BluetoothDevice::BluetoothDevice(ExecutionContext* context, PassOwnPtr<WebBluetoothDeviceInit> webDevice)
|
| +BluetoothDevice::BluetoothDevice(ExecutionContext* context, std::unique_ptr<WebBluetoothDeviceInit> webDevice)
|
| : ActiveDOMObject(context)
|
| , m_webDevice(std::move(webDevice))
|
| , m_gatt(BluetoothRemoteGATTServer::create(this))
|
| @@ -25,7 +26,7 @@ BluetoothDevice::BluetoothDevice(ExecutionContext* context, PassOwnPtr<WebBlueto
|
| ThreadState::current()->registerPreFinalizer(this);
|
| }
|
|
|
| -BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver* resolver, PassOwnPtr<WebBluetoothDeviceInit> webDevice)
|
| +BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver* resolver, std::unique_ptr<WebBluetoothDeviceInit> webDevice)
|
| {
|
| ASSERT(webDevice);
|
| BluetoothDevice* device = new BluetoothDevice(resolver->getExecutionContext(), std::move(webDevice));
|
|
|