| Index: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| diff --git a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| index a421337bda3627f12b72e769612b78abc9b2fb1c..530f6a5b2f4c5e3c8fa8f61a1624e487bb0f4f01 100644
|
| --- a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| @@ -112,7 +112,7 @@ bool throwExceptionIfSignalingStateClosed(RTCPeerConnection::SignalingState stat
|
| void asyncCallErrorCallback(RTCPeerConnectionErrorCallback* errorCallback, DOMException* exception)
|
| {
|
| DCHECK(errorCallback);
|
| - Microtask::enqueueMicrotask(bind(&RTCPeerConnectionErrorCallback::handleEvent, errorCallback, exception));
|
| + Microtask::enqueueMicrotask(bind(&RTCPeerConnectionErrorCallback::handleEvent, wrapCrossThreadPersistent(errorCallback), wrapCrossThreadPersistent(exception)));
|
| }
|
|
|
| bool callErrorCallbackIfSignalingStateClosed(RTCPeerConnection::SignalingState state, RTCPeerConnectionErrorCallback* errorCallback)
|
| @@ -1177,7 +1177,7 @@ void RTCPeerConnection::changeIceConnectionState(ICEConnectionState iceConnectio
|
| {
|
| if (m_iceConnectionState != ICEConnectionStateClosed) {
|
| scheduleDispatchEvent(Event::create(EventTypeNames::iceconnectionstatechange),
|
| - WTF::bind(&RTCPeerConnection::setIceConnectionState, this, iceConnectionState));
|
| + WTF::bind(&RTCPeerConnection::setIceConnectionState, wrapCrossThreadPersistent(this), iceConnectionState));
|
| }
|
| }
|
|
|
|
|