diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 11:40:42 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 11:40:42 +0000 |
commit | 06049cd70969c747872458d93262cf2c3f024157 (patch) | |
tree | d39a78ffa87342db997f5a32983063c6303ecc50 /chrome/browser/auto_launch_trial.h | |
parent | a9ac2b635f8b6a0d24cd6655ea584db0537aa76b (diff) | |
download | chromium_src-06049cd70969c747872458d93262cf2c3f024157.zip chromium_src-06049cd70969c747872458d93262cf2c3f024157.tar.gz chromium_src-06049cd70969c747872458d93262cf2c3f024157.tar.bz2 |
Make sure the Autolaunch infobar...
1) shows up on First Run of Chrome (for the right experiment brand code).
2) takes precedent over the 'Chrome is not your default browser' infobar.
3) is not shown if other infobars are present.
Also some minor cleanup:
- Renamed IsInAutoLaunchGroup to IsInAutoLaunchFieldTrial (better fit).
- Moved brand specific code to auto_launch_trial namespace (easier to find) and created meaningful function names for'em.
BUG=106801
TEST=This requires a special branded build (see instructions for http://codereview.chromium.org/8729009).
Review URL: http://codereview.chromium.org/8969024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/auto_launch_trial.h')
-rw-r--r-- | chrome/browser/auto_launch_trial.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/auto_launch_trial.h b/chrome/browser/auto_launch_trial.h index 69a3e9d..7ca55cd 100644 --- a/chrome/browser/auto_launch_trial.h +++ b/chrome/browser/auto_launch_trial.h @@ -6,6 +6,8 @@ #define CHROME_BROWSER_AUTO_LAUNCH_TRIAL_H_ #pragma once +#include <string> + // Strings used with the "auto launching Chrome at computer startup" trial. If // the field trial is running then... // base::FieldTrialList::TrialExists(kAutoLaunchTrial_Name) returns true. @@ -37,6 +39,12 @@ enum InfobarMetricResponse { // Whether the auto-launch experiment is active and the user is part of it. bool IsInAutoLaunchGroup(); +// Whether the brand is part of the experiment group for auto-launch. +bool IsInExperimentGroup(const std::string& brand_code); + +// Whether the brand is part of the control group for auto-launch. +bool IsInControlGroup(const std::string& brand_code); + // Updates UMA to reflect user changing the auto-launch setting. void UpdateToggleAutoLaunchMetric(bool auto_launch); |