Index: Source/modules/push_messaging/PushError.h |
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/push_messaging/PushError.h |
index cc80bff6ec0a0ce5f2b3cb52224cae89d9334811..0decd425a8936a031cba133e96a2b1e8a13a3ee5 100644 |
--- a/Source/modules/push_messaging/PushError.h |
+++ b/Source/modules/push_messaging/PushError.h |
@@ -12,14 +12,14 @@ |
namespace WebCore { |
-class NewScriptState; |
+class ScriptPromiseResolverWithContext; |
class PushError { |
WTF_MAKE_NONCOPYABLE(PushError); |
public: |
// For CallbackPromiseAdapter. |
typedef blink::WebPushError WebType; |
- static PassRefPtrWillBeRawPtr<DOMError> from(NewScriptState*, WebType* webErrorRaw) |
+ static PassRefPtrWillBeRawPtr<DOMError> from(ScriptPromiseResolverWithContext*, WebType* webErrorRaw) |
{ |
OwnPtr<WebType> webError = adoptPtr(webErrorRaw); |
RefPtrWillBeRawPtr<DOMError> error = DOMError::create(errorString(webError->errorType), webError->message); |