]> git.pld-linux.org Git - packages/chromium-browser.git/blame - chromium_useragent.patch.in
- up to 15.0.874.106, r107270 also current stable branch
[packages/chromium-browser.git] / chromium_useragent.patch.in
CommitLineData
21ae45bd
ER
1--- chromium-browser-11.0.691.0~svn20110304r76865/src/webkit/glue/user_agent.cc~ 2011-03-04 05:00:41.000000000 +0200
2+++ chromium-browser-11.0.691.0~svn20110304r76865/src/webkit/glue/user_agent.cc 2011-03-04 18:55:33.180524092 +0200
3@@ -102,15 +102,22 @@
4765ddf1
ER
4 // maximally compatible with Safari, we hope!!
5 std::string product = GetProductVersion();
6
7+ // We want to also add Chromium
8+ std::string realproduct = product.c_str();
9+ size_t pos;
10+ if ((pos = realproduct.find("/")) != std::string::npos)
11+ realproduct.replace(0, pos, "Chromium");
12+
13 // Derived from Safari's UA string.
14 base::StringAppendF(
5bd8f63d 15 &user_agent,
21ae45bd 16 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
4765ddf1
ER
17- " (KHTML, like Gecko) %s Safari/%d.%d",
18+ " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
21ae45bd 19 mimic_windows ? "Windows " : kUserAgentPlatform,
5bd8f63d 20 webkit_glue::BuildOSCpuInfo().c_str(),
4765ddf1
ER
21 WEBKIT_VERSION_MAJOR,
22 WEBKIT_VERSION_MINOR,
23+ realproduct.c_str(),
24 product.c_str(),
25 WEBKIT_VERSION_MAJOR,
26 WEBKIT_VERSION_MINOR);
This page took 0.028984 seconds and 4 git commands to generate.