Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h |
index 1f647c181d15af5e052c48b9da8424b3fc4e221a..107c2ec860d863dcab7fc3703da2bcd3be2b0b2e 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h |
@@ -10,8 +10,9 @@ |
#include "platform/heap/Handle.h" |
#include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTService.h" |
#include "public/platform/modules/bluetooth/web_bluetooth.mojom.h" |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
#include "wtf/text/WTFString.h" |
-#include <memory> |
namespace blink { |
@@ -32,11 +33,11 @@ class BluetoothRemoteGATTService final |
, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- explicit BluetoothRemoteGATTService(std::unique_ptr<WebBluetoothRemoteGATTService>); |
+ explicit BluetoothRemoteGATTService(PassOwnPtr<WebBluetoothRemoteGATTService>); |
// Interface required by CallbackPromiseAdapter: |
- using WebType = std::unique_ptr<WebBluetoothRemoteGATTService>; |
- static BluetoothRemoteGATTService* take(ScriptPromiseResolver*, std::unique_ptr<WebBluetoothRemoteGATTService>); |
+ using WebType = OwnPtr<WebBluetoothRemoteGATTService>; |
+ static BluetoothRemoteGATTService* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothRemoteGATTService>); |
// Interface required by garbage collection. |
DEFINE_INLINE_TRACE() { } |
@@ -51,7 +52,7 @@ public: |
private: |
ScriptPromise getCharacteristicsImpl(ScriptState*, mojom::WebBluetoothGATTQueryQuantity, String characteristicUUID = String()); |
- std::unique_ptr<WebBluetoothRemoteGATTService> m_webService; |
+ OwnPtr<WebBluetoothRemoteGATTService> m_webService; |
}; |
} // namespace blink |