Split 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}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment