Index: talk/app/webrtc/peerconnection.cc |
diff --git a/talk/app/webrtc/peerconnection.cc b/talk/app/webrtc/peerconnection.cc |
index c147aef5651f8f994b0b2c2726db497228a0f650..41df847cd68ddaa344c703def4549aa3ed81701d 100644 |
--- a/talk/app/webrtc/peerconnection.cc |
+++ b/talk/app/webrtc/peerconnection.cc |
@@ -712,9 +712,13 @@ void PeerConnection::RegisterUMAObserver(UMAObserver* observer) { |
// Send information about IPv4/IPv6 status. |
if (uma_observer_ && port_allocator_) { |
if (port_allocator_->flags() & cricket::PORTALLOCATOR_ENABLE_IPV6) { |
- uma_observer_->IncrementCounter(kPeerConnection_IPv6); |
+ uma_observer_->IncrementEnumCounter( |
+ kEnumCounterAddressFamily, kPeerConnection_IPv6, |
+ kPeerConnectionAddressFamilyCounter_Max); |
} else { |
- uma_observer_->IncrementCounter(kPeerConnection_IPv4); |
+ uma_observer_->IncrementEnumCounter( |
+ kEnumCounterAddressFamily, kPeerConnection_IPv4, |
+ kPeerConnectionAddressFamilyCounter_Max); |
} |
} |
} |