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

Unified Diff: chrome/browser/io_thread.cc

Issue 6216004: Feature to disable field trials in old versions of Chromium. Field trials... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: chrome/browser/io_thread.cc
===================================================================
--- chrome/browser/io_thread.cc (revision 71223)
+++ chrome/browser/io_thread.cc (working copy)
@@ -71,8 +71,11 @@
// For each option (i.e., non-default), we have a fixed probability.
base::FieldTrial::Probability kProbabilityPerGroup = 100; // 10%.
+ // After June 30, 2011 builds, it will always be in defaut group
+ // (parallel_default).
scoped_refptr<base::FieldTrial> trial(
- new base::FieldTrial("DnsParallelism", kDivisor));
+ new base::FieldTrial("DnsParallelism", kDivisor, "parallel_default",
+ 2011, 6, 30));
// List options with different counts.
// Firefox limits total to 8 in parallel, and default is currently 50.
@@ -84,9 +87,6 @@
int parallel_14 = trial->AppendGroup("parallel_14", kProbabilityPerGroup);
int parallel_20 = trial->AppendGroup("parallel_20", kProbabilityPerGroup);
- trial->AppendGroup("parallel_default",
- base::FieldTrial::kAllRemainingProbability);
-
if (trial->group() == parallel_6)
parallelism = 6;
else if (trial->group() == parallel_7)

Powered by Google App Engine
This is Rietveld 408576698