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

Unified Diff: chrome/browser/browser_main.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.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 75321)
+++ chrome/browser/browser_main.cc (working copy)
@@ -231,6 +231,7 @@
PrefetchAndPrerenderFieldTrial();
SpdyFieldTrial();
ConnectBackupJobsFieldTrial();
+ SSLFalseStartFieldTrial();
}
// This is an A/B test for the maximum number of persistent connections per
@@ -429,6 +430,28 @@
}
}
+void BrowserMainParts::SSLFalseStartFieldTrial() {
+ if (parsed_command_line().HasSwitch(switches::kDisableSSLFalseStart)) {
+ net::SSLConfigService::DisableFalseStart();
+ return;
+ }
+
+ const base::FieldTrial::Probability kDivisor = 100;
+ base::FieldTrial::Probability falsestart_probability = 50; // 50/50 trial
+
+ // After July 30, 2011 builds, it will always be in default group.
+ scoped_refptr<base::FieldTrial> trial(
+ new base::FieldTrial(
+ "SSLFalseStart", kDivisor, "FalseStart_enabled", 2011, 7, 30));
+
+ int disabled_group = trial->AppendGroup("FalseStart_disabled",
+ falsestart_probability);
+
+ int trial_grp = trial->group();
+ if (trial_grp == disabled_group)
+ net::SSLConfigService::DisableFalseStart();
+}
+
// Parse the --prerender= command line switch, which controls both prerendering
// and prefetching. If the switch is unset, or is set to "auto", then the user
// is assigned to a field trial.
« no previous file with comments | « chrome/browser/browser_main.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698