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

Unified Diff: Source/modules/push_messaging/PushRegistration.h

Issue 396963002: ServiceWorker: Bypass resolving a promise when ExecutionContext is gone (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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/PushRegistration.h
diff --git a/Source/modules/push_messaging/PushRegistration.h b/Source/modules/push_messaging/PushRegistration.h
index b3865ee852a97cb5f06c12596ac8858c13449bfe..d46756f6d94262002adc8dce68213482eb9fcb38 100644
--- a/Source/modules/push_messaging/PushRegistration.h
+++ b/Source/modules/push_messaging/PushRegistration.h
@@ -24,6 +24,10 @@ public:
OwnPtr<WebType> registration = adoptPtr(registrationRaw);
return new PushRegistration(registration->endpoint, registration->registrationId);
}
+ static void dispose(WebType* registrationRaw)
Michael van Ouwerkerk 2014/07/24 14:38:51 Why is the dispose method inlined in PushRegistrat
nhiroki 2014/07/24 15:52:32 Moved from() & dispose() to *.cpp. I meant to mak
+ {
+ delete registrationRaw;
+ }
virtual ~PushRegistration();

Powered by Google App Engine
This is Rietveld 408576698