| Index: chrome/browser/about_flags.cc
|
| ===================================================================
|
| --- chrome/browser/about_flags.cc (revision 75286)
|
| +++ chrome/browser/about_flags.cc (working copy)
|
| @@ -328,7 +328,7 @@
|
|
|
| // Returns the name used in prefs for the choice at the specified index.
|
| std::string NameForChoice(const Experiment& e, int index) {
|
| - DCHECK(e.type == Experiment::MULTI_VALUE);
|
| + DCHECK_EQ(e.type, Experiment::MULTI_VALUE);
|
| DCHECK(index < e.num_choices);
|
| return std::string(e.internal_name) + about_flags::testing::kMultiSeparator +
|
| base::IntToString(index);
|
| @@ -339,7 +339,7 @@
|
| if (e.type == Experiment::SINGLE_VALUE) {
|
| names->insert(e.internal_name);
|
| } else {
|
| - DCHECK(e.type == Experiment::MULTI_VALUE);
|
| + DCHECK_EQ(e.type, Experiment::MULTI_VALUE);
|
| for (int i = 0; i < e.num_choices; ++i)
|
| names->insert(NameForChoice(e, i));
|
| }
|
| @@ -421,7 +421,7 @@
|
| // Returns the Value representing the choice data in the specified experiment.
|
| Value* CreateChoiceData(const Experiment& experiment,
|
| const std::set<std::string>& enabled_experiments) {
|
| - DCHECK(experiment.type == Experiment::MULTI_VALUE);
|
| + DCHECK_EQ(experiment.type, Experiment::MULTI_VALUE);
|
| ListValue* result = new ListValue;
|
| for (int i = 0; i < experiment.num_choices; ++i) {
|
| const Experiment::Choice& choice = experiment.choices[i];
|
|
|