diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 19:46:26 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 19:46:26 +0000 |
commit | d87dae2f56e7a32444dfc8750c4c560becf7548a (patch) | |
tree | ddf9f70350fb7904c589d45f6cd08c6fd0ae8ab1 /chrome/browser/browser_about_handler.cc | |
parent | 2393d25daf892ef6d891ed9c7bacc4f4a11cf0f7 (diff) | |
download | chromium_src-d87dae2f56e7a32444dfc8750c4c560becf7548a.zip chromium_src-d87dae2f56e7a32444dfc8750c4c560becf7548a.tar.gz chromium_src-d87dae2f56e7a32444dfc8750c4c560becf7548a.tar.bz2 |
Move channel (beta,dev,stable) determination code to a common location.
Add channel info to about:version.
Linux about box work not done.
Linux channel determination code still a stub.
BUG=30444
How to verify:
- on both Mac and Win, with a branded build:
- confirm the About Box and about:version have channel info after the version number.
Channel for PC comes from the registry so it'll be the channel of your official install, not this build.
Channel for Mac comes from the Info.plist so it WILL be from the current version; stable if undefined.
Review URL: http://codereview.chromium.org/506007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 128ad14..320af0c 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -34,6 +34,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/histogram_synchronizer.h" #include "chrome/common/jstemplate_builder.h" +#include "chrome/common/platform_util.h" #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" #include "chrome/common/render_messages.h" @@ -506,6 +507,8 @@ std::string AboutVersion(DictionaryValue* localized_strings) { localized_strings->SetString(L"name", l10n_util::GetString(IDS_PRODUCT_NAME)); localized_strings->SetString(L"version", version_info->file_version()); + std::wstring mod = UTF16ToWide(platform_util::GetVersionStringModifier()); + localized_strings->SetString(L"version_modifier", mod); localized_strings->SetString(L"js_engine", js_engine); localized_strings->SetString(L"js_version", js_version); localized_strings->SetString(L"webkit_version", webkit_version); |