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

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

Issue 801393002: PushRegistration.unregister() can fail with a NetworkError. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@push_unregister
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | Source/modules/push_messaging/PushRegistration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushError.cpp
diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/push_messaging/PushError.cpp
index 6ae5e5af4adefde7a25686d74d29a1cdf073fb6f..13f3e591085a7050e1107bd2525cb5b26f7e418a 100644
--- a/Source/modules/push_messaging/PushError.cpp
+++ b/Source/modules/push_messaging/PushError.cpp
@@ -16,6 +16,8 @@ PassRefPtrWillBeRawPtr<DOMException> PushError::take(ScriptPromiseResolver*, Web
switch (webError->errorType) {
case WebPushError::ErrorTypeAbort:
return DOMException::create(AbortError, webError->message);
+ case WebPushError::ErrorTypeNetwork:
+ return DOMException::create(NetworkError, webError->message);
case WebPushError::ErrorTypeNotFound:
return DOMException::create(NotFoundError, webError->message);
case WebPushError::ErrorTypeUnknown:
« no previous file with comments | « no previous file | Source/modules/push_messaging/PushRegistration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698