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

Unified Diff: chrome/renderer/page_load_histograms.cc

Issue 6544004: Add field trial for A/B testing of SSL False Start. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/page_load_histograms.cc
===================================================================
--- chrome/renderer/page_load_histograms.cc (revision 75321)
+++ chrome/renderer/page_load_histograms.cc (working copy)
@@ -796,6 +796,27 @@
}
}
+ static bool false_start_trial(base::FieldTrialList::Find("SSLFalseStart") &&
+ !base::FieldTrialList::Find("SSLFalseStart")->group_name().empty());
+ if (false_start_trial) {
+ if (scheme_type == URLPattern::SCHEME_HTTPS) {
+ switch (load_type) {
+ case NavigationState::LINK_LOAD_NORMAL:
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.BeginToFinish_LinkLoadNormal", "SSLFalseStart"),
+ begin_to_finish_all_loads);
+ break;
+ case NavigationState::NORMAL_LOAD:
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.BeginToFinish_NormalLoad", "SSLFalseStart"),
+ begin_to_finish_all_loads);
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
// Site isolation metrics.
UMA_HISTOGRAM_COUNTS("SiteIsolation.PageLoadsWithCrossSiteFrameAccess",
cross_origin_access_count_);
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698