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

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, 9 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
« no previous file with comments | « Source/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/InstallPhaseEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/InstallEvent.cpp
diff --git a/Source/modules/serviceworkers/InstallEvent.cpp b/Source/modules/serviceworkers/InstallEvent.cpp
index 2aae7882a73a39c61ac8ccafdd2af19b990e1302..5c30abb3bcdaaf008716eb7a321395b2e002ed70 100644
--- a/Source/modules/serviceworkers/InstallEvent.cpp
+++ b/Source/modules/serviceworkers/InstallEvent.cpp
@@ -38,14 +38,14 @@
namespace WebCore {
-PassRefPtr<InstallEvent> InstallEvent::create()
+PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create()
{
- return adoptRef(new InstallEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(new InstallEvent(type, initializer, observer));
}
void InstallEvent::replace()
« no previous file with comments | « Source/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/InstallPhaseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698