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

Unified Diff: chrome/browser/about_flags_unittest.cc

Issue 2036193002: Allow overriding variation parameter via chrome://flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After code review #1 Created 4 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
Index: chrome/browser/about_flags_unittest.cc
diff --git a/chrome/browser/about_flags_unittest.cc b/chrome/browser/about_flags_unittest.cc
index 416c01fc5be15db784fd15c2ad021f5f81d3ea88..0fbdbd2cf7aa72642793f7c0c78016325d5f6f63 100644
--- a/chrome/browser/about_flags_unittest.cc
+++ b/chrome/browser/about_flags_unittest.cc
@@ -184,8 +184,8 @@ std::set<std::string> GetAllSwitchesForTesting() {
result.insert(entry.command_line_switch);
break;
case flags_ui::FeatureEntry::MULTI_VALUE:
- for (int j = 0; j < entry.num_choices; ++j) {
- result.insert(entry.choices[j].command_line_switch);
+ for (int j = 0; j < entry.num_options; ++j) {
+ result.insert(entry.ChoiceForOption(j).command_line_switch);
}
break;
case flags_ui::FeatureEntry::ENABLE_DISABLE_VALUE:

Powered by Google App Engine
This is Rietveld 408576698