Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1633)

Unified Diff: content/renderer/push_messaging/push_messaging_dispatcher.cc

Issue 2199213003: Use NotAllowedError instead of PermissionDeniedError for the Push API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the browser tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 75e6e1032db9f778ff7ec922dd1dc85b90415a3b..7c89a765306072cc031cc8a3a5a9039b769aab15 100644
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
@@ -138,7 +138,7 @@ void PushMessagingDispatcher::OnSubscribeFromDocumentError(
blink::WebPushError::ErrorType error_type =
status == PUSH_REGISTRATION_STATUS_PERMISSION_DENIED
- ? blink::WebPushError::ErrorTypePermissionDenied
+ ? blink::WebPushError::ErrorTypeNotAllowed
: blink::WebPushError::ErrorTypeAbort;
callbacks->onError(blink::WebPushError(

Powered by Google App Engine
This is Rietveld 408576698