Commit d3644ba2 authored by gunsch's avatar gunsch Committed by Commit bot

Chromecast: adds Chromecast build # to User-Agent string.

R=lcwu@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/604933002

Cr-Commit-Position: refs/heads/master@{#296762}
parent 9e65b890
......@@ -279,6 +279,9 @@
'python',
'<(version_py_path)',
'-e', 'VERSION_FULL="<(version_full)"',
# Revision is taken from buildbot if available; otherwise, a dev string is used.
'-e', 'CAST_BUILD_REVISION="<!(echo ${BUILD_NUMBER:="local.${USER}"})"',
'-e', 'CAST_IS_DEBUG_BUILD=1 if "<(CONFIGURATION_NAME)" == "Debug" else 0',
'common/version.h.in',
'<@(_outputs)',
],
......
......@@ -8,5 +8,7 @@
#define CHROMECAST_COMMON_VERSION_INFO_H_
#define PRODUCT_VERSION "@VERSION_FULL@"
#define CAST_BUILD_REVISION "@CAST_BUILD_REVISION@"
#define CAST_IS_DEBUG_BUILD @CAST_IS_DEBUG_BUILD@
#endif // CHROMECAST_COMMON_VERSION_INFO_H_
......@@ -14,7 +14,8 @@ namespace shell {
std::string GetUserAgent() {
std::string product = "Chrome/" PRODUCT_VERSION;
return content::BuildUserAgentFromProduct(product) + " CrKey";
return content::BuildUserAgentFromProduct(product) +
" CrKey" CAST_BUILD_REVISION;
}
CastContentClient::~CastContentClient() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment