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

Unified Diff: net/socket/ssl_client_socket_pool.cc

Issue 7113008: Add revocation checking field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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
« chrome/browser/browser_main.cc ('K') | « net/socket/ssl_client_socket_nss.cc ('k') | 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 33c7e8b56ca1959858c153a87ebfd71c6d826fa5..b01aadbe6e647b52415dbc36ae49f9654e8191fa 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -329,24 +329,36 @@ int SSLConnectJob::DoSSLConnectComplete(int result) {
base::TimeDelta::FromMilliseconds(1),
base::TimeDelta::FromMinutes(10),
100);
- } else {
- UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency",
+ }
+
+ UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency",
Mike Belshe 2011/06/08 04:50:38 note: you're changing the definition of these his
agl 2011/06/08 18:57:12 Yes, that's was intentional.
+ connect_duration,
+ base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(10),
+ 100);
+
+ const std::string& host = params_->host_and_port().host();
+ bool is_google = host == "google.com" ||
+ (host.size() > 11 &&
+ host.rfind(".google.com") == host.size() - 11);
+ if (is_google) {
+ UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google",
connect_duration,
base::TimeDelta::FromMilliseconds(1),
base::TimeDelta::FromMinutes(10),
100);
+ }
- const std::string& host = params_->host_and_port().host();
- bool is_google = host == "google.com" ||
- (host.size() > 11 &&
- host.rfind(".google.com") == host.size() - 11);
- if (is_google) {
- UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google",
- connect_duration,
- base::TimeDelta::FromMilliseconds(1),
- base::TimeDelta::FromMinutes(10),
- 100);
- }
+ static const bool rev_checking_trial =
+ base::FieldTrialList::TrialExists("RevCheckingImpact");
+ if (rev_checking_trial) {
Mike Belshe 2011/06/08 04:50:38 I think this is a problem. You will compare: a) s
agl 2011/06/08 18:57:12 Yes, I meant to put the histogram in the |is_googl
+ UMA_HISTOGRAM_CUSTOM_TIMES(base::FieldTrial::MakeName(
+ "Net.SSL_Connection_Latency_Google",
+ "RevCheckingImpact"),
+ connect_duration,
+ base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(10),
+ 100);
}
}
« chrome/browser/browser_main.cc ('K') | « net/socket/ssl_client_socket_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698