| Index: content/child/push_messaging/push_provider.cc
|
| diff --git a/content/child/push_messaging/push_provider.cc b/content/child/push_messaging/push_provider.cc
|
| index d503f507dd4c02b7413c1c2b54e155d4a47a69ad..089460172edf7b41f73932e9d539d6080d11893a 100644
|
| --- a/content/child/push_messaging/push_provider.cc
|
| +++ b/content/child/push_messaging/push_provider.cc
|
| @@ -168,8 +168,13 @@ void PushProvider::OnSubscribeFromWorkerError(int request_id,
|
| if (!callbacks)
|
| return;
|
|
|
| + 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);
|
|
|