Chromium Code Reviews
DescriptionAllow overriding variation parameter via chrome://flags.
Introduces a new type of FeatureEntry - FEATURE_WITH_VARIATIONS_VALUE which allows the user for a given feature to choose among predefined variations of its parameters.
When defining such a feature type (using the FEATURE_WITH_VARIATIONS_VALUE_TYPE macro), one also needs to specify the trial name to which the feature belongs.
A new experiment group called "AboutFlags" is selected for the trial and the parameters are associated with this group.
The precedence is as follows (params for a trial are associated from the first source where they appear):
command-line params (--force-fieldtrial-params=...)
about:flags (added by this CL)
field trial testing config
server config
A minor refactoring change:
In FeatureEntry, renames the notion "choice" to "option" to make it clear it denotes more than just instances of the Choice struct. It has been the case before; now it is even more overloaded covering also FeatureVariations. Added a few functions to make the code less dependent on how we order the options in the UI.
BUG=609059
Committed: https://crrev.com/1383d1d3c2b2696f18e2af907915fbd3da5602bd
Cr-Commit-Position: refs/heads/master@{#400416}
Patch Set 1 #Patch Set 2 : Minor polish #Patch Set 3 : Adding a variation dependency #Patch Set 4 : Another take #Patch Set 5 : Minor polish #2 #Patch Set 6 : Minor polish #3 + Adding a unittest #
Total comments: 13
Patch Set 7 : After code review #1 #
Total comments: 32
Patch Set 8 : After code review #
Total comments: 8
Patch Set 9 : Rebase #Patch Set 10 : After code review #3 #Patch Set 11 : Rebase #2 #Patch Set 12 : Build deps #Patch Set 13 : Build deps #2 #
Dependent Patchsets: Messages
Total messages: 34 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||