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

Unified Diff: net/socket/ssl_client_socket_pool.cc

Issue 2251483002: Don't record post-quantum stats if MITM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e8f643b7d158ceac4f6100653b635d658878656b..242a009f4fd76ad3d5e6c049e8589c0854db6905 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -432,10 +432,11 @@ int SSLConnectJob::DoSSLConnectComplete(int result) {
// These are hosts that we expect to always offer CECPQ1. Connections
// to them, whether or not this browser is in the experiment group, form
// the basis of our comparisons.
- bool cecpq1_supported =
+ bool cecpq1_expected_to_be_offered =
+ ssl_info.is_issued_by_known_root &&
(host == "play.google.com" || host == "checkout.google.com" ||
host == "wallet.google.com");
- if (cecpq1_supported) {
+ if (cecpq1_expected_to_be_offered) {
UMA_HISTOGRAM_CUSTOM_TIMES(
"Net.SSL_Connection_Latency_PostQuantumSupported_Full_Handshake",
connect_duration, base::TimeDelta::FromMilliseconds(1),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698