summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 20:13:22 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 20:13:22 +0000
commit1351b6a03c4bd8b19b36a39afb37b0f34d34708f (patch)
tree137595e0aadbb93bb2c45e064c957e02a901f36b /chrome
parent120f05fa80e35a372331dfe901e65c74383d3d30 (diff)
downloadchromium_src-1351b6a03c4bd8b19b36a39afb37b0f34d34708f.zip
chromium_src-1351b6a03c4bd8b19b36a39afb37b0f34d34708f.tar.gz
chromium_src-1351b6a03c4bd8b19b36a39afb37b0f34d34708f.tar.bz2
Make about:linux-splash the default home page and remove an ifdef so we can see the NTP for new tabs.
Review URL: http://codereview.chromium.org/65018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-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";