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

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: Carve some corners into the round hole so the square peg fits better 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..361d3e0af12191b41c53cbdee62801f172d7f31f 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -501,6 +501,11 @@ int SSLConnectJob::DoSSLConnectComplete(int result) {
SSLInfo ssl_info;
ssl_socket_->GetSSLInfo(&ssl_info);
+ UMA_HISTOGRAM_ENUMERATION(
Ryan Sleevi 2015/02/19 19:24:02 BUG: You're now not histograming for HPKP mismatch
davidben 2015/02/19 19:32:20 Is that a problem? Seems like a bug in the old cod
+ "Net.SSL_Version",
+ SSLConnectionStatusToVersion(ssl_info.connection_status),
+ SSL_CONNECTION_VERSION_MAX);
Ilya Sherman 2015/02/19 20:18:35 It looks like you're re-using an enum that's curre
davidben 2015/02/19 21:22:34 Done. Ryan: I figured it would be okay to stabili
Ryan Sleevi 2015/02/19 22:18:51 Yeah.
+
UMA_HISTOGRAM_SPARSE_SLOWLY("Net.SSL_CipherSuite",
SSLConnectionStatusToCipherSuite(
ssl_info.connection_status));

Powered by Google App Engine
This is Rietveld 408576698