Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
index 04b4311ff31371bc71fe30b7f4c87d577fcc88fa..91df2519fed9d69aff498d15a96b57bb6064b23d 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp |
@@ -16,6 +16,7 @@ |
#include "modules/bluetooth/BluetoothError.h" |
#include "modules/bluetooth/BluetoothSupplement.h" |
#include "public/platform/modules/bluetooth/WebBluetooth.h" |
+#include <memory> |
namespace blink { |
@@ -30,7 +31,7 @@ DOMDataView* ConvertWebVectorToDataView(const WebVector<uint8_t>& webVector) |
} // anonymous namespace |
-BluetoothRemoteGATTCharacteristic::BluetoothRemoteGATTCharacteristic(ExecutionContext* context, PassOwnPtr<WebBluetoothRemoteGATTCharacteristicInit> webCharacteristic) |
+BluetoothRemoteGATTCharacteristic::BluetoothRemoteGATTCharacteristic(ExecutionContext* context, std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> webCharacteristic) |
: ActiveDOMObject(context) |
, m_webCharacteristic(std::move(webCharacteristic)) |
, m_stopped(false) |
@@ -40,7 +41,7 @@ BluetoothRemoteGATTCharacteristic::BluetoothRemoteGATTCharacteristic(ExecutionCo |
ThreadState::current()->registerPreFinalizer(this); |
} |
-BluetoothRemoteGATTCharacteristic* BluetoothRemoteGATTCharacteristic::take(ScriptPromiseResolver* resolver, PassOwnPtr<WebBluetoothRemoteGATTCharacteristicInit> webCharacteristic) |
+BluetoothRemoteGATTCharacteristic* BluetoothRemoteGATTCharacteristic::take(ScriptPromiseResolver* resolver, std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> webCharacteristic) |
{ |
if (!webCharacteristic) { |
return nullptr; |