summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 02:30:12 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 02:30:12 +0000
commitfceaeae013de84077051f04940a97193497793db (patch)
treebde79bf3ffe4f037d52c8c6391c29068f8eccb5f /chrome/browser/browser_about_handler.cc
parent100897aabac0a58a473d8fb01cdf5d532ea6e4be (diff)
downloadchromium_src-fceaeae013de84077051f04940a97193497793db.zip
chromium_src-fceaeae013de84077051f04940a97193497793db.tar.gz
chromium_src-fceaeae013de84077051f04940a97193497793db.tar.bz2
Linux: add splash screen
In preparation for an internal launch, this adds a splash screen as the startup URL for Linux which has a few FAQs. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 511c4d1..7f25a60 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -61,6 +61,7 @@ static const char kStatsPath[] = "stats";
static const char kVersionPath[] = "version";
static const char kCreditsPath[] = "credits";
static const char kTermsPath[] = "terms";
+static const char kLinuxSplash[] = "linux-splash";
class AboutSource : public ChromeURLDataManager::DataSource {
public:
@@ -141,6 +142,12 @@ void AboutSource::StartDataRequest(const std::string& path_raw,
} else if (path == kTermsPath) {
response = BrowserAboutHandler::AboutTerms();
}
+#if defined(OS_LINUX)
+ else if (path == kLinuxSplash) {
+ response = BrowserAboutHandler::AboutLinuxSplash();
+ }
+#endif
+
FinishDataRequest(response, request_id);
}
@@ -304,6 +311,15 @@ std::string BrowserAboutHandler::AboutCredits() {
}
// static
+std::string BrowserAboutHandler::AboutLinuxSplash() {
+ static const std::string linux_splash_html =
+ ResourceBundle::GetSharedInstance().GetDataResource(
+ IDR_LINUX_SPLASH_HTML);
+
+ return linux_splash_html;
+}
+
+// static
std::string BrowserAboutHandler::AboutTerms() {
static const std::string terms_html =
ResourceBundle::GetSharedInstance().GetDataResource(