Index: third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp |
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp |
index 6fe8461d25b393a917729db40aa676c5ccd19608..d8f8e55254cf3cb217023aed7d7952cc2ae140b3 100644 |
--- a/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp |
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCDataChannelEvent.cpp |
@@ -33,12 +33,23 @@ RTCDataChannelEvent* RTCDataChannelEvent::create(const AtomicString& type, |
return new RTCDataChannelEvent(type, canBubble, cancelable, channel); |
} |
+RTCDataChannelEvent* RTCDataChannelEvent::create( |
+ const AtomicString& type, |
+ const RTCDataChannelEventInit& initializer) { |
+ return new RTCDataChannelEvent(type, initializer); |
+} |
+ |
RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, |
bool canBubble, |
bool cancelable, |
RTCDataChannel* channel) |
: Event(type, canBubble, cancelable), m_channel(channel) {} |
+RTCDataChannelEvent::RTCDataChannelEvent( |
+ const AtomicString& type, |
+ const RTCDataChannelEventInit& initializer) |
+ : Event(type, initializer), m_channel(initializer.channel()) {} |
+ |
RTCDataChannelEvent::~RTCDataChannelEvent() {} |
RTCDataChannel* RTCDataChannelEvent::channel() const { |