Index: Source/modules/bluetooth/BluetoothError.h |
diff --git a/Source/modules/bluetooth/BluetoothError.h b/Source/modules/bluetooth/BluetoothError.h |
index 031cf10663fd7115e94dcd6af83624c53c634b9f..91286ca6a54192b170e292406202f2782dde51d8 100644 |
--- a/Source/modules/bluetooth/BluetoothError.h |
+++ b/Source/modules/bluetooth/BluetoothError.h |
@@ -7,8 +7,6 @@ |
#include "platform/heap/Handle.h" |
#include "public/platform/modules/bluetooth/WebBluetoothError.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -21,8 +19,8 @@ class BluetoothError { |
WTF_MAKE_NONCOPYABLE(BluetoothError); |
public: |
// Interface required by CallbackPromiseAdapter: |
- using WebType = OwnPtr<WebBluetoothError>; |
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothError>); |
+ using WebType = const WebBluetoothError&; |
+ static DOMException* take(ScriptPromiseResolver*, const WebBluetoothError&); |
private: |
BluetoothError() = delete; |