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

Unified Diff: content/child/push_messaging/push_provider.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/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 19699140d79efcdb66cbefc89630c1e61853b33d..440ba3c34d97b535c76ebdb3d40699260c6dcab4 100644
--- a/content/child/push_messaging/push_provider.cc
+++ b/content/child/push_messaging/push_provider.cc
@@ -183,7 +183,7 @@ void PushProvider::OnSubscribeFromWorkerError(int request_id,
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