Index: Source/modules/push_messaging/PushError.h |
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/push_messaging/PushError.h |
index ee59bb9d732d6226725df3049ad87c1e8e52c9ad..ed38bb1126cfb34f90d1af5e729f8168d06a8e8e 100644 |
--- a/Source/modules/push_messaging/PushError.h |
+++ b/Source/modules/push_messaging/PushError.h |
@@ -8,8 +8,6 @@ |
#include "core/dom/DOMException.h" |
#include "platform/heap/Handle.h" |
#include "public/platform/modules/push_messaging/WebPushError.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -19,8 +17,8 @@ class PushError { |
WTF_MAKE_NONCOPYABLE(PushError); |
public: |
// For CallbackPromiseAdapter. |
- using WebType = OwnPtr<WebPushError>; |
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebPushError> webError); |
+ using WebType = const WebPushError&; |
+ static DOMException* take(ScriptPromiseResolver*, const WebPushError& webError); |
private: |
PushError() = delete; |