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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushError.cpp

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: third_party/WebKit/Source/modules/push_messaging/PushError.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushError.cpp b/third_party/WebKit/Source/modules/push_messaging/PushError.cpp
index 6b8d611399514f355fc82273c29d7c895f37e90e..9effbe4c98ecacd768f57cf90fb4666e1558814e 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushError.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushError.cpp
@@ -17,12 +17,12 @@ DOMException* PushError::take(ScriptPromiseResolver*, const WebPushError& webErr
return DOMException::create(AbortError, webError.message);
case WebPushError::ErrorTypeNetwork:
return DOMException::create(NetworkError, webError.message);
+ case WebPushError::ErrorTypeNotAllowed:
+ return DOMException::create(NotAllowedError, webError.message);
case WebPushError::ErrorTypeNotFound:
return DOMException::create(NotFoundError, webError.message);
case WebPushError::ErrorTypeNotSupported:
return DOMException::create(NotSupportedError, webError.message);
- case WebPushError::ErrorTypePermissionDenied:
- return DOMException::create(PermissionDeniedError, webError.message);
case WebPushError::ErrorTypeUnknown:
return DOMException::create(UnknownError, webError.message);
}

Powered by Google App Engine
This is Rietveld 408576698