summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc
index ba5e9950690..b9df9f5a853 100644
--- a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_error_event.cc
@@ -20,11 +20,15 @@ RTCErrorEvent::RTCErrorEvent(const AtomicString& type,
DCHECK(event_init_dict);
}
+RTCErrorEvent::RTCErrorEvent(const AtomicString& type, webrtc::RTCError error)
+ : Event(type, Bubbles::kNo, Cancelable::kNo),
+ error_(MakeGarbageCollected<RTCError>(error)) {}
+
RTCError* RTCErrorEvent::error() const {
return error_;
}
-void RTCErrorEvent::Trace(blink::Visitor* visitor) {
+void RTCErrorEvent::Trace(Visitor* visitor) {
visitor->Trace(error_);
Event::Trace(visitor);
}