Add IPv4/IPv6 counters to UMA even when count is 0.

R=jiayl@chromium.org
TBR=sergeyu@chromium.org
BUG=N/A

Review URL: https://codereview.chromium.org/416993006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285630 0039d316-1c4b-4281-b951-d872f2087c98
parent 36f26854
......@@ -105,15 +105,12 @@ void IpcNetworkManager::OnNetworkListChanged(
}
}
if (ipv4_interfaces > 0) {
UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv4Interfaces",
ipv4_interfaces);
}
if (ipv6_interfaces > 0) {
UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv6Interfaces",
ipv6_interfaces);
}
// Send interface counts to UMA.
UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv4Interfaces",
ipv4_interfaces);
UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv6Interfaces",
ipv6_interfaces);
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAllowLoopbackInPeerConnection)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment