| Index: webrtc/api/peerconnection.cc
 | 
| diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
 | 
| index 144b1c64b55862b066f595e3737d89a43a251d05..adc38a31d9f095787ba71b703b5733e0f7a180fb 100644
 | 
| --- a/webrtc/api/peerconnection.cc
 | 
| +++ b/webrtc/api/peerconnection.cc
 | 
| @@ -37,8 +37,10 @@
 | 
|  #include "webrtc/base/stringutils.h"
 | 
|  #include "webrtc/base/trace_event.h"
 | 
|  #include "webrtc/call.h"
 | 
| +#include "webrtc/call/rtc_event_log.h"
 | 
|  #include "webrtc/media/sctp/sctpdataengine.h"
 | 
|  #include "webrtc/pc/channelmanager.h"
 | 
| +#include "webrtc/system_wrappers/include/clock.h"
 | 
|  #include "webrtc/system_wrappers/include/field_trial.h"
 | 
|  
 | 
|  namespace {
 | 
| @@ -571,6 +573,7 @@ PeerConnection::PeerConnection(PeerConnectionFactory* factory)
 | 
|        ice_state_(kIceNew),
 | 
|        ice_connection_state_(kIceConnectionNew),
 | 
|        ice_gathering_state_(kIceGatheringNew),
 | 
| +      event_log_(RtcEventLog::Create(webrtc::Clock::GetRealTimeClock())),
 | 
|        rtcp_cname_(GenerateRtcpCname()),
 | 
|        local_streams_(StreamCollection::Create()),
 | 
|        remote_streams_(StreamCollection::Create()) {}
 | 
| @@ -619,8 +622,8 @@ bool PeerConnection::Initialize(
 | 
|      return false;
 | 
|    }
 | 
|  
 | 
| -  media_controller_.reset(
 | 
| -      factory_->CreateMediaController(configuration.media_config));
 | 
| +  media_controller_.reset(factory_->CreateMediaController(
 | 
| +      configuration.media_config, event_log_.get()));
 | 
|  
 | 
|    session_.reset(new WebRtcSession(
 | 
|        media_controller_.get(), factory_->network_thread(),
 | 
| @@ -2342,10 +2345,10 @@ bool PeerConnection::ReconfigurePortAllocator_n(
 | 
|  
 | 
|  bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file,
 | 
|                                          int64_t max_size_bytes) {
 | 
| -  return media_controller_->call_w()->StartEventLog(file, max_size_bytes);
 | 
| +  return event_log_->StartLogging(file, max_size_bytes);
 | 
|  }
 | 
|  
 | 
|  void PeerConnection::StopRtcEventLog_w() {
 | 
| -  media_controller_->call_w()->StopEventLog();
 | 
| +  event_log_->StopLogging();
 | 
|  }
 | 
|  }  // namespace webrtc
 | 
| 
 |