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

Unified Diff: Source/modules/serviceworkers/InstallEvent.cpp

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/serviceworkers/InstallEvent.cpp
diff --git a/Source/modules/serviceworkers/InstallEvent.cpp b/Source/modules/serviceworkers/InstallEvent.cpp
index 5a476b84e87dc1b23a0eb458d01846da5917e26e..de60fb3ef831d5747bb9a2330db4ce6b52616a9a 100644
--- a/Source/modules/serviceworkers/InstallEvent.cpp
+++ b/Source/modules/serviceworkers/InstallEvent.cpp
@@ -39,14 +39,14 @@
namespace WebCore {
-PassRefPtr<InstallEvent> InstallEvent::create()
+PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create()
{
- return adoptRef(new InstallEvent());
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new InstallEvent());
}
-PassRefPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const EventInit& initializer, PassRefPtr<WaitUntilObserver> observer)
+PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const EventInit& initializer, PassRefPtr<WaitUntilObserver> observer)
{
- return adoptRef(new InstallEvent(type, initializer, observer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new InstallEvent(type, initializer, observer));
}
void InstallEvent::replace()

Powered by Google App Engine
This is Rietveld 408576698