From 025ec1dc16aed7ff9ed633b76a33bd248a7fbaf8 Mon Sep 17 00:00:00 2001 From: "rdevlin.cronin" Date: Thu, 3 Mar 2016 14:35:12 -0800 Subject: [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} --- extensions/common/feature_switch.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extensions/common') 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; } -- cgit v1.1