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)); |
} |