diff options
author | rdevlin.cronin <rdevlin.cronin@chromium.org> | 2016-03-03 14:35:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-03 22:36:55 +0000 |
commit | 025ec1dc16aed7ff9ed633b76a33bd248a7fbaf8 (patch) | |
tree | 3098ebdc4dce4169666954ab1a6aabfec3b586f0 /extensions/common | |
parent | d862c72b081de56d1d9b87a59a397d9441d19725 (diff) | |
download | chromium_src-025ec1dc16aed7ff9ed633b76a33bd248a7fbaf8.zip chromium_src-025ec1dc16aed7ff9ed633b76a33bd248a7fbaf8.tar.gz chromium_src-025ec1dc16aed7ff9ed633b76a33bd248a7fbaf8.tar.bz2 |
[Extensions] Update FeatureSwitch logic to include Dogfood experiment groups
BUG=591783
Review URL: https://codereview.chromium.org/1757383003
Cr-Commit-Position: refs/heads/master@{#379120}
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/feature_switch.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/common/feature_switch.cc b/extensions/common/feature_switch.cc index ca73db0..88301f1 100644 --- a/extensions/common/feature_switch.cc +++ b/extensions/common/feature_switch.cc @@ -235,9 +235,11 @@ bool FeatureSwitch::IsEnabled() const { for (const std::string& field_trial_name : required_field_trials_) { std::string group_name = base::FieldTrialList::FindFullName(field_trial_name); - if (group_name != "Enabled") { + if (!base::StartsWith(group_name, "Enabled", + base::CompareCase::SENSITIVE)) { enabled_by_field_trial = false; - if (group_name == "Disabled") { + if (base::StartsWith(group_name, "Disabled", + base::CompareCase::SENSITIVE)) { disabled_by_field_trial = true; break; } |