diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 00:41:52 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 00:41:52 +0000 |
commit | 5193d537d7a68cb5bf50bacc9e42437d6faf66d5 (patch) | |
tree | 1143832c0529dd6c6584f6e2b79b3c681b3e110b /webkit/glue/user_agent.cc | |
parent | 0a318c63fa078d29641b505c2f44ee76c7e773dc (diff) | |
download | chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.zip chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.tar.gz chromium_src-5193d537d7a68cb5bf50bacc9e42437d6faf66d5.tar.bz2 |
webkit: expose webkit branch and revision number in about pages
- Change lastchange.py to work in other directories and to
provide SVN URL.
- Use lastchange.py in place where we generate WebKit versioning
info.
- Include branch@revision string in glue API.
BUG=41264
TEST=compiles
Review URL: http://codereview.chromium.org/6354014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/user_agent.cc')
-rw-r--r-- | webkit/glue/user_agent.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc index 4867c27..afd1c83 100644 --- a/webkit/glue/user_agent.cc +++ b/webkit/glue/user_agent.cc @@ -22,8 +22,14 @@ namespace webkit_glue { std::string GetProductVersion(); std::string GetWebKitVersion() { - return base::StringPrintf("%d.%d", WEBKIT_VERSION_MAJOR, - WEBKIT_VERSION_MINOR); + return base::StringPrintf("%d.%d (%s)", + WEBKIT_VERSION_MAJOR, + WEBKIT_VERSION_MINOR, + WEBKIT_SVN_REVISION); +} + +std::string GetWebKitRevision() { + return WEBKIT_SVN_REVISION; } std::string BuildOSCpuInfo() { |