• imcheng's avatar
    [Feature Switch][Media Router] Add required field trials to MR switch. · 7c91fae3
    imcheng authored
    Add a generic required_field_trials to FeatureSwitch that takes the
    place of a singular field_trial_name. When deciding whether to enable or
    disable a feature with field trials, all field trials will be queried
    (though short circuiting can occur):
    - If user is in "Enabled" group for all field trials, then enable
    feature.
    - If user is in "Disabled group for any field trials, then disable
    feature.
    - Otherwise, fall back to default value.
    
    Change the MR FeatureSwitches to depend on the EAR field trial. Per
    discussion, we will change the interpretation of MR field trial to
    be "X% of users that have EAR field trial enabled".
    
    BUG=541315
    
    Review URL: https://codereview.chromium.org/1680823004
    
    Cr-Commit-Position: refs/heads/master@{#374834}
    7c91fae3
feature_switch_unittest.cc 8.68 KB