Cleanup: Remove duplicated functions
IncrementCounter has been replaced by IncrementEnumCounter. Since the code has been rolled into Chromium, time to clean this up. R=pthatcher@chromium.org TBR=pthatcher@webrtc.org BUG= Review URL: https://codereview.webrtc.org/1312763013 . Cr-Commit-Position: refs/heads/master@{#9852}
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user