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

Unified Diff: webrtc/pc/peerconnectionfactory.cc

Issue 2996933003: Add logging of host lookups made by TurnPort to the RtcEventLog. (Closed)
Patch Set: review Created 3 years, 4 months 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
« no previous file with comments | « webrtc/p2p/client/basicportallocator.cc ('k') | webrtc/rtc_base/asyncresolverinterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/peerconnectionfactory.cc
diff --git a/webrtc/pc/peerconnectionfactory.cc b/webrtc/pc/peerconnectionfactory.cc
index be083c26b79cd60110c29e2df36879234a4055ee..3d5014683dd525be8dca2f2bddb4805227bae763 100644
--- a/webrtc/pc/peerconnectionfactory.cc
+++ b/webrtc/pc/peerconnectionfactory.cc
@@ -252,19 +252,20 @@ PeerConnectionFactory::CreatePeerConnection(
new rtc::RTCCertificateGenerator(signaling_thread_, network_thread_));
}
+ std::unique_ptr<RtcEventLog> event_log(new RtcEventLogNullImpl());
+ if (event_log_factory_) {
+ event_log = event_log_factory_->CreateRtcEventLog();
+ }
+
if (!allocator) {
allocator.reset(new cricket::BasicPortAllocator(
- default_network_manager_.get(), default_socket_factory_.get()));
+ default_network_manager_.get(), default_socket_factory_.get(),
+ event_log.get()));
}
network_thread_->Invoke<void>(
RTC_FROM_HERE, rtc::Bind(&cricket::PortAllocator::SetNetworkIgnoreMask,
allocator.get(), options_.network_ignore_mask));
- std::unique_ptr<RtcEventLog> event_log(new RtcEventLogNullImpl());
- if (event_log_factory_) {
- event_log = event_log_factory_->CreateRtcEventLog();
- }
-
std::unique_ptr<Call> call = worker_thread_->Invoke<std::unique_ptr<Call>>(
RTC_FROM_HERE,
rtc::Bind(&PeerConnectionFactory::CreateCall_w, this, event_log.get()));
« no previous file with comments | « webrtc/p2p/client/basicportallocator.cc ('k') | webrtc/rtc_base/asyncresolverinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698