| Index: content/common/push_messaging_param_traits.cc
|
| diff --git a/content/common/push_messaging_param_traits.cc b/content/common/push_messaging_param_traits.cc
|
| index 74b9bc5c77bda6483fb05efa37323a70dbb4d741..d336d0c4ac6c0c530914bda70c7ef78bbae22a49 100644
|
| --- a/content/common/push_messaging_param_traits.cc
|
| +++ b/content/common/push_messaging_param_traits.cc
|
| @@ -117,6 +117,11 @@ static_assert(blink::WebPushError::ErrorType::ErrorTypeNetwork ==
|
| content::mojom::PushErrorType::NETWORK),
|
| "PushErrorType enums must match, NETWORK");
|
|
|
| +static_assert(blink::WebPushError::ErrorType::ErrorTypeNone ==
|
| + static_cast<blink::WebPushError::ErrorType>(
|
| + content::mojom::PushErrorType::NONE),
|
| + "PushErrorType enums must match, NONE");
|
| +
|
| static_assert(blink::WebPushError::ErrorType::ErrorTypeNotAllowed ==
|
| static_cast<blink::WebPushError::ErrorType>(
|
| content::mojom::PushErrorType::NOT_ALLOWED),
|
| @@ -132,11 +137,6 @@ static_assert(blink::WebPushError::ErrorType::ErrorTypeNotSupported ==
|
| content::mojom::PushErrorType::NOT_SUPPORTED),
|
| "PushErrorType enums must match, NOT_SUPPORTED");
|
|
|
| -static_assert(blink::WebPushError::ErrorType::ErrorTypeUnknown ==
|
| - static_cast<blink::WebPushError::ErrorType>(
|
| - content::mojom::PushErrorType::UNKNOWN),
|
| - "PushErrorType enums must match, UNKNOWN");
|
| -
|
| static_assert(blink::WebPushError::ErrorType::ErrorTypeInvalidState ==
|
| static_cast<blink::WebPushError::ErrorType>(
|
| content::mojom::PushErrorType::INVALID_STATE),
|
| @@ -270,7 +270,7 @@ EnumTraits<content::mojom::PushErrorType, blink::WebPushError::ErrorType>::
|
| }
|
|
|
| NOTREACHED();
|
| - return content::mojom::PushErrorType::UNKNOWN;
|
| + return content::mojom::PushErrorType::ABORT;
|
| }
|
|
|
| // static
|
|
|