diff options
author | mal@google.com <mal@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-02 02:31:23 +0000 |
---|---|---|
committer | mal@google.com <mal@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-02 02:31:23 +0000 |
commit | 4db48af7ca622fe2b6d521abd7116f76e3d9ecb1 (patch) | |
tree | 122882c2ec348a5d3f4fe3474c71f0f16c505424 /webkit/glue/webkit_glue.cc | |
parent | 450823047f0ebccb4fe6e0414382b35437f8eff9 (diff) | |
download | chromium_src-4db48af7ca622fe2b6d521abd7116f76e3d9ecb1.zip chromium_src-4db48af7ca622fe2b6d521abd7116f76e3d9ecb1.tar.gz chromium_src-4db48af7ca622fe2b6d521abd7116f76e3d9ecb1.tar.bz2 |
Remove last minute #define and change UA string to Chrome
on trunk.
BUG=1431137
TBR= darin@google.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index 9fc621b..800eb52 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -336,12 +336,12 @@ const std::string& GetDefaultUserAgent() { // with it. This is done to expose our product name in a manner that is // maximally compatible with Safari, we hope!! std::string product; -#ifdef CHROME_LAST_MINUTE + FileVersionInfo* version_info = FileVersionInfo::CreateFileVersionInfoForCurrentModule(); if (version_info) product = "Chrome/" + WideToASCII(version_info->product_version()); -#endif + if (product.empty()) product = "Version/3.1"; |