Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: chrome/browser/browser_main.cc

Issue 149481: Instead of forcing the homepage to be linux splash, force the startup action ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 20336)
+++ chrome/browser/browser_main.cc (working copy)
@@ -70,6 +70,8 @@
#if defined(OS_LINUX)
#include "chrome/app/breakpad_linux.h"
+// TODO(estade): remove this when the linux splash is removed.
+#include "chrome/browser/session_startup_pref.h"
#endif
// TODO(port): several win-only methods have been pulled out of this, but
@@ -533,6 +535,14 @@
// services aware of all our preferences.
browser::RegisterAllPrefs(user_prefs, local_state);
+#if defined(OS_LINUX)
+ // TODO(port): Remove ifdef when the Linux splash page is not needed.
+ SessionStartupPref startup_pref =
+ SessionStartupPref(SessionStartupPref::URLS);
+ startup_pref.urls.push_back(GURL("about:linux-splash"));
+ SessionStartupPref::SetStartupPref(profile, startup_pref);
+#endif
+
// Now that all preferences have been registered, set the install date
// for the uninstall metrics if this is our first run. This only actually
// gets used if the user has metrics reporting enabled at uninstall time.
« no previous file with comments | « no previous file | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698