Late initialize MediaController, for less resource i.e. ProcessThread, usage by PeerConnection.
BUG=chromium:582441
Review URL: https://codereview.webrtc.org/1713043002
Cr-Commit-Position: refs/heads/master@{#11834}
diff --git a/webrtc/api/statscollector.cc b/webrtc/api/statscollector.cc
index ca1548f..7fb0c2b 100644
--- a/webrtc/api/statscollector.cc
+++ b/webrtc/api/statscollector.cc
@@ -462,6 +462,8 @@
}
stats_gathering_started_ = time_now;
+ // TODO(pthatcher): Merge PeerConnection and WebRtcSession so there is no
+ // pc_->session().
if (pc_->session()) {
// TODO(tommi): All of these hop over to the worker thread to fetch
// information. We could use an AsyncInvoker to run all of these and post