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

Unified Diff: Source/modules/mediastream/RTCDataChannelEvent.cpp

Issue 185393006: Revert "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/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));
}

Powered by Google App Engine
This is Rietveld 408576698