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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp
index 82ed1c120a24c423fa76ba81b837fae5298871e2..92362512173d3e8209cc18768a5983b9b9e3563a 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsRequestImpl.cpp
@@ -34,17 +34,14 @@ RTCStatsRequestImpl* RTCStatsRequestImpl::create(ExecutionContext* context,
RTCPeerConnection* requester,
RTCStatsCallback* callback,
MediaStreamTrack* selector) {
- RTCStatsRequestImpl* request =
- new RTCStatsRequestImpl(context, requester, callback, selector);
- request->suspendIfNeeded();
- return request;
+ return new RTCStatsRequestImpl(context, requester, callback, selector);
}
RTCStatsRequestImpl::RTCStatsRequestImpl(ExecutionContext* context,
RTCPeerConnection* requester,
RTCStatsCallback* callback,
MediaStreamTrack* selector)
- : SuspendableObject(context),
+ : ContextLifecycleObserver(context),
m_successCallback(callback),
m_component(selector ? selector->component() : 0),
m_requester(requester) {
@@ -87,7 +84,7 @@ DEFINE_TRACE(RTCStatsRequestImpl) {
visitor->trace(m_component);
visitor->trace(m_requester);
RTCStatsRequest::trace(visitor);
- SuspendableObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698