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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 27169: Linux: add splash screen (Closed)
Patch Set: ... Created 11 years, 10 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 | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 34f25566a1d814ab2715f972886de88823980802..3118b9ef2a5fb55b09dae01811829b97a7c69252 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -60,6 +60,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:
@@ -140,6 +141,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);
}
@@ -303,6 +310,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(
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698