diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 19:02:38 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 19:02:38 +0000 |
commit | 616925a61dcb63847f31809a1061d85fac9b57e6 (patch) | |
tree | 4b077aea53dd99027aec6e9a23dd84a9d7a6fcc6 /net/base | |
parent | b13e83a45074b6ce821440ef480a6cc6d075731c (diff) | |
download | chromium_src-616925a61dcb63847f31809a1061d85fac9b57e6.zip chromium_src-616925a61dcb63847f31809a1061d85fac9b57e6.tar.gz chromium_src-616925a61dcb63847f31809a1061d85fac9b57e6.tar.bz2 |
Remove connection failed histograms.
BUG=none - not used and blocks refactoring for bug 30357
TEST=unit tests
Review URL: http://codereview.chromium.org/661318
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40397 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/connection_type_histograms.cc | 10 | ||||
-rw-r--r-- | net/base/connection_type_histograms.h | 3 |
2 files changed, 4 insertions, 9 deletions
diff --git a/net/base/connection_type_histograms.cc b/net/base/connection_type_histograms.cc index 7326a92..988e96e 100644 --- a/net/base/connection_type_histograms.cc +++ b/net/base/connection_type_histograms.cc @@ -20,7 +20,7 @@ namespace net { // // Each histogram has an unused bucket at the end to allow seamless future // expansion. -void UpdateConnectionTypeHistograms(ConnectionType type, bool success) { +void UpdateConnectionTypeHistograms(ConnectionType type) { static bool had_connection_type[NUM_OF_CONNECTION_TYPES]; if (type >= 0 && type < NUM_OF_CONNECTION_TYPES) { @@ -30,12 +30,8 @@ void UpdateConnectionTypeHistograms(ConnectionType type, bool success) { type, NUM_OF_CONNECTION_TYPES); } - if (success) - UMA_HISTOGRAM_ENUMERATION("Net.ConnectionTypeCount2", - type, NUM_OF_CONNECTION_TYPES); - else - UMA_HISTOGRAM_ENUMERATION("Net.ConnectionTypeFailCount2", - type, NUM_OF_CONNECTION_TYPES); + UMA_HISTOGRAM_ENUMERATION("Net.ConnectionTypeCount2", + type, NUM_OF_CONNECTION_TYPES); } else { NOTREACHED(); // Someone's logging an invalid type! } diff --git a/net/base/connection_type_histograms.h b/net/base/connection_type_histograms.h index c8517ff..582f09d 100644 --- a/net/base/connection_type_histograms.h +++ b/net/base/connection_type_histograms.h @@ -33,8 +33,7 @@ enum ConnectionType { }; // Update the connection type histograms. |type| is the connection type. -// |success| is whether or not the connection was successful or not. -void UpdateConnectionTypeHistograms(ConnectionType type, bool success); +void UpdateConnectionTypeHistograms(ConnectionType type); } // namespace net |