summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 16:11:44 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 16:11:44 +0000
commit7911717865f60ebb922f07d1cf45249b9717cb00 (patch)
tree3ff8130662ec4154227460cc5889ae9fa21fa203 /chrome/browser/browser_main.cc
parent9b4453dca53380e88547252741fa907b30e01d28 (diff)
downloadchromium_src-7911717865f60ebb922f07d1cf45249b9717cb00.zip
chromium_src-7911717865f60ebb922f07d1cf45249b9717cb00.tar.gz
chromium_src-7911717865f60ebb922f07d1cf45249b9717cb00.tar.bz2
Change default homepage experience.
We want to make google.com homepage by default and also show the home button (see the bug below). BUG=http://crbug.com/19392 TEST=Delete user profile and launch Chrome - homepage should be set to google.com and should be enabled. also home button should show up. Review URL: http://codereview.chromium.org/174030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc25
1 files changed, 14 insertions, 11 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 885a645..64cc686 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -639,20 +639,23 @@ int BrowserMain(const MainFunctionParams& parameters) {
// Note that this be done _after_ the PrefService is initialized and all
// preferences are registered, since some of the code that the importer
// touches reads preferences.
- if (is_first_run && !first_run_ui_bypass) {
- if (!OpenFirstRunDialog(profile, homepage_defined, &process_singleton)) {
- // The user cancelled the first run dialog box, we should exit Chrome.
- return ResultCodes::NORMAL_EXIT;
- }
+ if (is_first_run) {
+ if (!first_run_ui_bypass) {
+ if (!OpenFirstRunDialog(profile, homepage_defined, &process_singleton)) {
+ // The user cancelled the first run dialog box, we should exit Chrome.
+ return ResultCodes::NORMAL_EXIT;
+ }
#if defined(OS_POSIX)
- // On Windows, the download is tagged with enable/disable stats so there
- // is no need for this code.
+ // On Windows, the download is tagged with enable/disable stats so there
+ // is no need for this code.
- // If stats reporting was turned on by the first run dialog then toggle
- // the pref.
- if (GoogleUpdateSettings::GetCollectStatsConsent())
- local_state->SetBoolean(prefs::kMetricsReportingEnabled, true);
+ // If stats reporting was turned on by the first run dialog then toggle
+ // the pref.
+ if (GoogleUpdateSettings::GetCollectStatsConsent())
+ local_state->SetBoolean(prefs::kMetricsReportingEnabled, true);
#endif // OS_POSIX
+ }
+ Browser::SetNewHomePagePrefs(user_prefs);
}
// Sets things up so that if we crash from this point on, a dialog will