Fixing correct UMA metric for PeerConnection enabled with IPv4 Vs IPv6.

BUG=N/A
TBR=jiayl@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/21499007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6242 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mallinath@webrtc.org
2014-05-23 22:19:37 +00:00
parent 440e1d1053
commit b445f26f24

View File

@ -625,9 +625,9 @@ 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_IPv4);
} else {
uma_observer_->IncrementCounter(kPeerConnection_IPv6);
} else {
uma_observer_->IncrementCounter(kPeerConnection_IPv4);
}
}
}