Index: Source/modules/mediastream/RTCDataChannelEvent.cpp |
diff --git a/Source/modules/mediastream/RTCDataChannelEvent.cpp b/Source/modules/mediastream/RTCDataChannelEvent.cpp |
index 20966e863c616e58e6fd9341bdfd863576a33d19..d2c3fda83c6f744ad01ee0536c2de6faef9a42f0 100644 |
--- a/Source/modules/mediastream/RTCDataChannelEvent.cpp |
+++ b/Source/modules/mediastream/RTCDataChannelEvent.cpp |
@@ -29,14 +29,14 @@ |
namespace WebCore { |
-PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create() |
+PassRefPtr<RTCDataChannelEvent> RTCDataChannelEvent::create() |
{ |
- return adoptRefWillBeRefCountedGarbageCollected(new RTCDataChannelEvent); |
+ return adoptRef(new RTCDataChannelEvent); |
} |
-PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel) |
+PassRefPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel) |
{ |
- return adoptRefWillBeRefCountedGarbageCollected(new RTCDataChannelEvent(type, canBubble, cancelable, channel)); |
+ return adoptRef(new RTCDataChannelEvent(type, canBubble, cancelable, channel)); |
} |