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