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 e717ea2d9ac9385eb3a465496ea9a2978929e4e4..d3a2fe6e6b8a891c379a57a852a3548cce7e7bd5 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
@@ -13,11 +13,10 @@ |
#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, std::unique_ptr<WebBluetoothDeviceInit> webDevice) |
+BluetoothDevice::BluetoothDevice(ExecutionContext* context, PassOwnPtr<WebBluetoothDeviceInit> webDevice) |
: ActiveDOMObject(context) |
, m_webDevice(std::move(webDevice)) |
, m_gatt(BluetoothRemoteGATTServer::create(this)) |
@@ -26,7 +25,7 @@ BluetoothDevice::BluetoothDevice(ExecutionContext* context, std::unique_ptr<WebB |
ThreadState::current()->registerPreFinalizer(this); |
} |
-BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver* resolver, std::unique_ptr<WebBluetoothDeviceInit> webDevice) |
+BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver* resolver, PassOwnPtr<WebBluetoothDeviceInit> webDevice) |
{ |
ASSERT(webDevice); |
BluetoothDevice* device = new BluetoothDevice(resolver->getExecutionContext(), std::move(webDevice)); |