DescriptionSplit the ScopedSubresourceFilterFeatureToggle into two helper classes.
The ScopedSubresourceFilterFeatureToggle remains, but is reduced to be
responsible for overriding only the base::FeatureList state.
The ScopedSubresourceFilterConfigurator is introduced as the new way for
overriding the configuration returned by GetActiveConfigurations(), and has the
following advantages:
-- It does so regardless of the current field trial, feature list, and/or
variation parameters states, thus the configuration can be changed
multiple times during a single test.
-- It can be used without a global base::FieldTrialList singleton, or setting
up variations parameters.
-- It will allow setting multiple simultaneous configurations conveniently
without needing to first encode them as variation parameters.
BUG=708181
Review-Url: https://codereview.chromium.org/2838193002
Cr-Commit-Position: refs/heads/master@{#468939}
Committed: https://chromium.googlesource.com/chromium/src/+/98fda4cef846209efce2b3d5c1e4d6d0ab560a7e
Patch Set 1 #Patch Set 2 : Optimize more things away. #Patch Set 3 : Polish. #Patch Set 4 : More polish. #
Total comments: 19
Patch Set 5 : Addressed comments. #Patch Set 6 : Phrasing. #Patch Set 7 : Rebase. #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 37 (25 generated)
|