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

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

Issue 1130233003: Reject the permissionState promise with NotSupported Exception (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: Source/modules/push_messaging/PushError.cpp
diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/push_messaging/PushError.cpp
index d4eb8f700016eb6e116143ac0273925b99887080..5eb7e3e39fe07732c2dfc98a875fb69f2df236e4 100644
--- a/Source/modules/push_messaging/PushError.cpp
+++ b/Source/modules/push_messaging/PushError.cpp
@@ -21,6 +21,8 @@ DOMException* PushError::take(ScriptPromiseResolver*, WebType* webErrorRaw)
return DOMException::create(NetworkError, webError->message);
case WebPushError::ErrorTypeNotFound:
return DOMException::create(NotFoundError, webError->message);
+ case WebPushError::ErrorTypeNotSupported:
+ return DOMException::create(NotSupportedError, webError->message);
case WebPushError::ErrorTypeUnknown:
return DOMException::create(UnknownError, webError->message);
}

Powered by Google App Engine
This is Rietveld 408576698