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

Unified Diff: Source/modules/mediastream/RTCDataChannelEvent.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/mediastream/RTCDataChannelEvent.h ('k') | Source/modules/mediastream/RTCIceCandidateEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/RTCDataChannelEvent.cpp
diff --git a/Source/modules/mediastream/RTCDataChannelEvent.cpp b/Source/modules/mediastream/RTCDataChannelEvent.cpp
index 470b27b082112a92b913d672bfb21466d0fda368..e6b4f58efb3706537ebdb110798d5014280d7b5f 100644
--- a/Source/modules/mediastream/RTCDataChannelEvent.cpp
+++ b/Source/modules/mediastream/RTCDataChannelEvent.cpp
@@ -27,14 +27,14 @@
namespace WebCore {
-PassRefPtr<RTCDataChannelEvent> RTCDataChannelEvent::create()
+PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create()
{
- return adoptRef(new RTCDataChannelEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new RTCDataChannelEvent);
}
-PassRefPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel)
+PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel)
{
- return adoptRef(new RTCDataChannelEvent(type, canBubble, cancelable, channel));
+ return adoptRefWillBeRefCountedGarbageCollected(new RTCDataChannelEvent(type, canBubble, cancelable, channel));
}
« no previous file with comments | « Source/modules/mediastream/RTCDataChannelEvent.h ('k') | Source/modules/mediastream/RTCIceCandidateEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698