Chromium Code Reviews| Index: chrome/browser/auto_launch_trial.cc |
| =================================================================== |
| --- chrome/browser/auto_launch_trial.cc (revision 114621) |
| +++ chrome/browser/auto_launch_trial.cc (working copy) |
| @@ -7,6 +7,7 @@ |
| #include "base/file_path.h" |
| #include "base/metrics/field_trial.h" |
| #include "base/metrics/histogram.h" |
| +#include "base/string_util.h" |
| #include "chrome/browser/first_run/first_run.h" |
| #include "chrome/installer/util/master_preferences_constants.h" |
| #include "chrome/installer/util/master_preferences.h" |
| @@ -17,12 +18,20 @@ |
| namespace auto_launch_trial { |
| -bool IsInAutoLaunchGroup() { |
| +bool IsInAutoLaunchFieldTrial() { |
|
Roger Tawa OOO till Jul 10th
2011/12/16 20:44:31
I actually think the old name was better. Remembe
|
| return base::FieldTrialList::TrialExists(kAutoLaunchTrialName) && |
| base::FieldTrialList::Find(kAutoLaunchTrialName)->group_name() |
| == kAutoLaunchTrialAutoLaunchGroup; |
| } |
| +bool IsInExperimentGroup(const std::string& brand_code) { |
| + return LowerCaseEqualsASCII(brand_code, "rngp"); |
| +} |
| + |
| +bool IsInControlGroup(const std::string& brand_code) { |
| + return LowerCaseEqualsASCII(brand_code, "rngq"); |
| +} |
| + |
| void UpdateToggleAutoLaunchMetric(bool auto_launch) { |
| UMA_HISTOGRAM_ENUMERATION( |
| base::FieldTrial::MakeName("ToggleAutoLaunch", kAutoLaunchTrialName), |