summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authormmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 21:24:01 +0000
committermmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-11 21:24:01 +0000
commit07c83fd88c98778035fb5b5102fa4983b39fa860 (patch)
tree3b22f88e3bf39fa6f99047faaae9de3a4fb0c246 /chrome/browser/browser_about_handler.cc
parent2cfda0ee8752e6b0c5aeb588253d61e74a6ee3d0 (diff)
downloadchromium_src-07c83fd88c98778035fb5b5102fa4983b39fa860.zip
chromium_src-07c83fd88c98778035fb5b5102fa4983b39fa860.tar.gz
chromium_src-07c83fd88c98778035fb5b5102fa4983b39fa860.tar.bz2
Add splash appropriate for Linux official builds.
Review URL: http://codereview.chromium.org/115147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 96fa213..6c46f18 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -152,9 +152,18 @@ std::string AboutHistograms(const std::string& query) {
}
std::string AboutLinuxSplash() {
+ int resource_id = IDR_LINUX_SPLASH_HTML_CHROMIUM;
+ scoped_ptr<FileVersionInfo> version_info(
+ FileVersionInfo::CreateFileVersionInfoForCurrentModule());
+ if (version_info == NULL) {
+ DLOG(ERROR) << "Unable to create FileVersionInfo object";
+ } else {
+ if (version_info->is_official_build()) {
+ resource_id = IDR_LINUX_SPLASH_HTML_CHROME;
+ }
+ }
static const std::string linux_splash_html =
- ResourceBundle::GetSharedInstance().GetDataResource(
- IDR_LINUX_SPLASH_HTML);
+ ResourceBundle::GetSharedInstance().GetDataResource(resource_id);
return linux_splash_html;
}