summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/profile.cc5
-rw-r--r--chrome/common/url_constants.cc5
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 268daea..37cb457 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -374,6 +374,11 @@ ProfileImpl::ProfileImpl(const FilePath& path)
PrefService* prefs = GetPrefs();
prefs->AddPrefObserver(prefs::kSpellCheckDictionary, this);
prefs->AddPrefObserver(prefs::kEnableSpellCheck, this);
+#if defined(OS_LINUX)
+ // TODO(port): Remove ifdef when the Linux splash page is not needed.
+ prefs->transient()->SetString(prefs::kHomePage, "about:linux-splash");
+ prefs->transient()->SetBoolean(prefs::kHomePageIsNewTabPage, false);
+#endif
}
void ProfileImpl::InitExtensions() {
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index 07d5de7..5b7e8a9 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -38,12 +38,7 @@ const char kChromeUIHistoryURL[] = "chrome-ui://history/";
const char kChromeUIInspectorURL[] = "chrome-ui://inspector/";
const char kChromeUIIPCURL[] = "chrome-ui://about/ipc";
const char kChromeUINetworkURL[] = "chrome-ui://about/network";
-#if defined(OS_LINUX)
-// TODO(port): Remove ifdef when we think that Linux splash page is not needed.
-const char kChromeUINewTabURL[] = "about:linux-splash";
-#else
const char kChromeUINewTabURL[] = "chrome-ui://newtab";
-#endif
const char kChromeUIDevToolsHost[] = "devtools";
const char kChromeUIDialogHost[] = "dialog";