Index: webrtc/api/peerconnection.cc |
diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc |
index 144b1c64b55862b066f595e3737d89a43a251d05..7cc5d00a30f5f55ab0da0067a7d952a6801b2ca3 100644 |
--- a/webrtc/api/peerconnection.cc |
+++ b/webrtc/api/peerconnection.cc |
@@ -1300,6 +1300,7 @@ void PeerConnection::RegisterUMAObserver(UMAObserver* observer) { |
// Send information about IPv4/IPv6 status. |
if (uma_observer_ && port_allocator_) { |
+ port_allocator_->SetMetricsObserver(uma_observer_); |
if (port_allocator_->flags() & cricket::PORTALLOCATOR_ENABLE_IPV6) { |
uma_observer_->IncrementEnumCounter( |
kEnumCounterAddressFamily, kPeerConnection_IPv6, |