summaryrefslogtreecommitdiffstats
path: root/base/metrics
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 19:04:19 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 19:04:19 +0000
commitd8c3a46da9b82be3997d619f4f3d5dd32a8c69f3 (patch)
treec72feb0775f520031ca5edb3ebd1e2c688b8ce23 /base/metrics
parent00f93a6e497bf687e9c28030bd65e142401ee0aa (diff)
downloadchromium_src-d8c3a46da9b82be3997d619f4f3d5dd32a8c69f3.zip
chromium_src-d8c3a46da9b82be3997d619f4f3d5dd32a8c69f3.tar.gz
chromium_src-d8c3a46da9b82be3997d619f4f3d5dd32a8c69f3.tar.bz2
Implement A/B experiment for anti-DDoS.
BUG=85258 TEST=manual testing done by developer Review URL: http://codereview.chromium.org/7027040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r--base/metrics/field_trial.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc
index b86b9cc..190ebcf 100644
--- a/base/metrics/field_trial.cc
+++ b/base/metrics/field_trial.cc
@@ -369,7 +369,9 @@ size_t FieldTrialList::GetFieldTrialCount() {
// static
bool FieldTrialList::IsOneTimeRandomizationEnabled() {
- DCHECK(global_);
+ // TODO(joi): Put back a DCHECK(global_) here. First, need to make sure all
+ // unit test executables have exactly one FieldTrialList instance (currently
+ // they have 0 or 1).
if (!global_)
return false;