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 396963002: ServiceWorker: Bypass resolving a promise when ExecutionContext is gone (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remake (add WebType::dispose()) Created 6 years, 5 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 6a5d8707931cdf45bf0ddfb48f0978fbdaa243c5..b9e8d70351d8237e442345f72eb8bf14db58496b 100644
--- a/Source/modules/push_messaging/PushError.cpp
+++ b/Source/modules/push_messaging/PushError.cpp
@@ -23,4 +23,9 @@ PassRefPtrWillBeRawPtr<DOMException> PushError::from(ScriptPromiseResolver*, Web
return DOMException::create(UnknownError);
}
+void PushError::dispose(WebType* webErrorRaw)
+{
+ delete webErrorRaw;
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698