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/ui/browser_init.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/ui/browser_init.h')
-rw-r--r-- | chrome/browser/ui/browser_init.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_init.h b/chrome/browser/ui/browser_init.h index 7d5a332..32cd4b7 100644 --- a/chrome/browser/ui/browser_init.h +++ b/chrome/browser/ui/browser_init.h @@ -227,8 +227,9 @@ class BrowserInit { // previously instructed not to do so) and warns the user if it is not. void CheckDefaultBrowser(Profile* profile); - // Checks whether Chrome was auto-started at login. - void CheckIfAutoLaunched(Profile* profile); + // Checks whether Chrome should show the 'Chrome was auto-started' infobar. + // Returns true if so. + bool CheckIfAutoLaunched(Profile* profile); const FilePath cur_dir_; const CommandLine& command_line_; |