Index: third_party/WebKit/Source/modules/push_messaging/PushError.cpp |
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushError.cpp b/third_party/WebKit/Source/modules/push_messaging/PushError.cpp |
index 6b8d611399514f355fc82273c29d7c895f37e90e..9effbe4c98ecacd768f57cf90fb4666e1558814e 100644 |
--- a/third_party/WebKit/Source/modules/push_messaging/PushError.cpp |
+++ b/third_party/WebKit/Source/modules/push_messaging/PushError.cpp |
@@ -17,12 +17,12 @@ DOMException* PushError::take(ScriptPromiseResolver*, const WebPushError& webErr |
return DOMException::create(AbortError, webError.message); |
case WebPushError::ErrorTypeNetwork: |
return DOMException::create(NetworkError, webError.message); |
+ case WebPushError::ErrorTypeNotAllowed: |
+ return DOMException::create(NotAllowedError, webError.message); |
case WebPushError::ErrorTypeNotFound: |
return DOMException::create(NotFoundError, webError.message); |
case WebPushError::ErrorTypeNotSupported: |
return DOMException::create(NotSupportedError, webError.message); |
- case WebPushError::ErrorTypePermissionDenied: |
- return DOMException::create(PermissionDeniedError, webError.message); |
case WebPushError::ErrorTypeUnknown: |
return DOMException::create(UnknownError, webError.message); |
} |