Index: Source/modules/serviceworkers/ServiceWorkerError.h |
diff --git a/Source/modules/serviceworkers/ServiceWorkerError.h b/Source/modules/serviceworkers/ServiceWorkerError.h |
index d45644ca04d1bde52d14df902b2b8ef7e1375226..6166d76744b7e341517c71a55a6058fe8994143d 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerError.h |
+++ b/Source/modules/serviceworkers/ServiceWorkerError.h |
@@ -33,8 +33,6 @@ |
#include "platform/heap/Handle.h" |
#include "public/platform/WebServiceWorkerError.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -44,8 +42,8 @@ class ScriptPromiseResolver; |
class ServiceWorkerError { |
public: |
// For CallbackPromiseAdapter |
- using WebType = OwnPtr<WebServiceWorkerError>; |
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerError> webError); |
+ using WebType = const WebServiceWorkerError&; |
+ static DOMException* take(ScriptPromiseResolver*, const WebServiceWorkerError& webError); |
private: |
WTF_MAKE_NONCOPYABLE(ServiceWorkerError); |