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

Unified Diff: components/flags_ui/feature_entry.h

Issue 2707013002: [chrome://flags] Let features override params in the same trial (Closed)
Patch Set: Comments #1 Created 3 years, 10 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 | « chrome/browser/about_flags.cc ('k') | components/flags_ui/feature_entry_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/flags_ui/feature_entry.h
diff --git a/components/flags_ui/feature_entry.h b/components/flags_ui/feature_entry.h
index d61ba843815453bc18e98621b8aca998d36e9d5a..464488577481d6da46c23d2c85c25034001cdde1 100644
--- a/components/flags_ui/feature_entry.h
+++ b/components/flags_ui/feature_entry.h
@@ -147,7 +147,9 @@ struct FeatureEntry {
const char* disable_command_line_switch;
const char* disable_command_line_value;
- // For FEATURE_VALUE, the base::Feature this entry corresponds to.
+ // For FEATURE_VALUE or FEATURE_WITH_VARIATIONS_VALUE, the base::Feature this
+ // entry corresponds to. The same feature must not be used in multiple
+ // FeatureEntries.
const base::Feature* feature;
// Number of options to choose from. This is used if type is MULTI_VALUE,
@@ -163,8 +165,9 @@ struct FeatureEntry {
const FeatureVariation* feature_variations;
// The name of the FieldTrial in which the selected variation parameters
- // should be registered. This is used if type is
- // FEATURE_WITH_VARIATIONS_VALUE.
+ // should be registered. Can be a nullptr if the parameters are accessed by
+ // their feature and the trial name is thus irrelevant. This is used if type
Alexei Svitkine (slow) 2017/03/01 22:24:37 This comment change should reverted now, right?
jkrcal 2017/03/02 08:13:12 Done.
+ // is FEATURE_WITH_VARIATIONS_VALUE.
const char* feature_trial_name;
// Returns the name used in prefs for the option at the specified |index|.
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/flags_ui/feature_entry_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698