diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 02:51:49 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 02:51:49 +0000 |
commit | e4a377cf052da52ea923d20106e55d107464ad04 (patch) | |
tree | c61d20310fdd9a984582e55782f5d824d0c5eaaa /chrome/browser/app_controller_mac.mm | |
parent | 224f5fe9120a1d2ed3c5ea98755ffb2b0afc7077 (diff) | |
download | chromium_src-e4a377cf052da52ea923d20106e55d107464ad04.zip chromium_src-e4a377cf052da52ea923d20106e55d107464ad04.tar.gz chromium_src-e4a377cf052da52ea923d20106e55d107464ad04.tar.bz2 |
Show sync promo at startup
This CL changes the startup behavior so that for new Chrome installs we now show the chrome://syncpromo page instead of the new tab page.
We also do the same thing when a user creates a new profile.
This CL also keeps track of the number of times the promo page has been shown so that we only show it 10 times.
In a later CL I'll add code to suppress the promo if the user is already signed into sync or if they have clicked the "Skip setup for now" button.
BUG=97779
TEST=
Review URL: http://codereview.chromium.org/8093016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104054 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 4acf0c6..0a8eac7 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -19,6 +19,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/browser_shutdown.h" #include "chrome/browser/command_updater.h" +#include "chrome/browser/first_run/first_run.h" #include "chrome/browser/instant/instant_confirm_dialog.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/printing/cloud_print/virtual_driver_install_helper.h" @@ -1066,7 +1067,9 @@ const AEEventClass kAECloudPrintUninstallClass = 'GCPu'; } CommandLine dummy(CommandLine::NO_PROGRAM); - BrowserInit::LaunchWithProfile launch(FilePath(), dummy); + BrowserInit::IsFirstRun first_run = FirstRun::IsChromeFirstRun() ? + BrowserInit::IS_FIRST_RUN : BrowserInit::IS_NOT_FIRST_RUN; + BrowserInit::LaunchWithProfile launch(FilePath(), dummy, first_run); launch.OpenURLsInBrowser(browser, false, urls); } |