Chromium Code Reviews| 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; |