| Index: content/renderer/push_messaging/push_messaging_dispatcher.cc
|
| diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc
|
| index f82547e43292b720ec369c3a0b199d713cb50e3f..dcf79de570821ca8be67a245857ce98efa6aa3c0 100644
|
| --- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
|
| +++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
|
| @@ -103,8 +103,13 @@ void PushMessagingDispatcher::OnSubscribeFromDocumentError(
|
| subscription_callbacks_.Lookup(request_id);
|
| DCHECK(callbacks);
|
|
|
| + blink::WebPushError::ErrorType error_type =
|
| + status == PUSH_REGISTRATION_STATUS_PERMISSION_DENIED
|
| + ? blink::WebPushError::ErrorTypePermissionDenied
|
| + : blink::WebPushError::ErrorTypeAbort;
|
| +
|
| callbacks->onError(blink::WebPushError(
|
| - blink::WebPushError::ErrorTypeAbort,
|
| + error_type,
|
| blink::WebString::fromUTF8(PushRegistrationStatusToString(status))));
|
|
|
| subscription_callbacks_.Remove(request_id);
|
|
|