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

Unified Diff: base/metrics/field_trial.cc

Issue 7027040: Implement A/B experiment for anti-DDoS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. 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
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/trials/throttling_trial.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial.cc
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc
index b86b9cc7ed4ae027f95410ccba0c114305aa9da4..2e079f7d062fc142907eff23731379c244535e25 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_);
jar (doing other things) 2011/06/16 18:50:12 NIT: Ok... based on phone chat, I'm fine with remo
+ // This can occur in valid cases, e.g. when certain unit tests initialize
+ // and tickle code that wants to set up a trial only if one-time
+ // randomization is supported, so we do not DCHECK.
jar (doing other things) 2011/06/12 06:49:12 Why is it valuable to test in this mode, and not i
Jói 2011/06/13 17:27:14 That's just it, this is the method my field trial
jar (doing other things) 2011/06/14 02:28:46 The common(?) error case is for someone to place a
if (!global_)
return false;
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | chrome/browser/trials/throttling_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698