From 06049cd70969c747872458d93262cf2c3f024157 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Mon, 19 Dec 2011 11:40:42 +0000 Subject: 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 --- chrome/browser/auto_launch_trial.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/browser/auto_launch_trial.h') 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 + // 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); -- cgit v1.1