Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: net/socket/ssl_client_socket_pool.cc

Issue 941743002: Add a dedicated SSL protocol version metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isherman comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/ssl_client_socket_pool.cc
diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc
index db28bec3e058eb210a26206661bd07ccc8a16451..64b6d67f032d8121567f2624379e2c2d19a958cc 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -501,6 +501,10 @@ int SSLConnectJob::DoSSLConnectComplete(int result) {
SSLInfo ssl_info;
ssl_socket_->GetSSLInfo(&ssl_info);
+ UMA_HISTOGRAM_ENUMERATION("Net.SSLVersion", SSLConnectionStatusToVersion(
+ ssl_info.connection_status),
+ SSL_CONNECTION_VERSION_MAX);
+
UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSL_CipherSuite",
SSLConnectionStatusToCipherSuite(
ssl_info.connection_status));

Powered by Google App Engine
This is Rietveld 408576698