| Index: third_party/WebKit/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.cpp b/third_party/WebKit/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.cpp
|
| index c5b5e64c07418011ce687a8d20ba88bd1e4f5d30..29463de6a741e13ee8fcbc97c5d7ade900f81e5f 100644
|
| --- a/third_party/WebKit/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/mediastream/RTCSessionDescriptionRequestImpl.cpp
|
| @@ -43,11 +43,13 @@
|
|
|
| RTCSessionDescriptionRequestImpl* RTCSessionDescriptionRequestImpl::create(ExecutionContext* context, RTCPeerConnection* requester, RTCSessionDescriptionCallback* successCallback, RTCPeerConnectionErrorCallback* errorCallback)
|
| {
|
| - return new RTCSessionDescriptionRequestImpl(context, requester, successCallback, errorCallback);
|
| + RTCSessionDescriptionRequestImpl* request = new RTCSessionDescriptionRequestImpl(context, requester, successCallback, errorCallback);
|
| + request->suspendIfNeeded();
|
| + return request;
|
| }
|
|
|
| RTCSessionDescriptionRequestImpl::RTCSessionDescriptionRequestImpl(ExecutionContext* context, RTCPeerConnection* requester, RTCSessionDescriptionCallback* successCallback, RTCPeerConnectionErrorCallback* errorCallback)
|
| - : ContextLifecycleObserver(context)
|
| + : ActiveDOMObject(context)
|
| , m_successCallback(successCallback)
|
| , m_errorCallback(errorCallback)
|
| , m_requester(requester)
|
| @@ -76,7 +78,7 @@
|
| clear();
|
| }
|
|
|
| -void RTCSessionDescriptionRequestImpl::contextDestroyed()
|
| +void RTCSessionDescriptionRequestImpl::stop()
|
| {
|
| clear();
|
| }
|
| @@ -94,7 +96,7 @@
|
| visitor->trace(m_errorCallback);
|
| visitor->trace(m_requester);
|
| RTCSessionDescriptionRequest::trace(visitor);
|
| - ContextLifecycleObserver::trace(visitor);
|
| + ActiveDOMObject::trace(visitor);
|
| }
|
|
|
| } // namespace blink
|
|
|