]> git.pld-linux.org Git - packages/chromium-browser.git/blame - chromium_useragent.patch.in
script to create diff patches between versions
[packages/chromium-browser.git] / chromium_useragent.patch.in
CommitLineData
d3aab3e7
AM
1--- chromium-browser-16.0.912.21~r108057/src/webkit/glue/user_agent.cc~ 2011-11-05 15:01:12.000000000 +0100
2+++ chromium-browser-16.0.912.21~r108057/src/webkit/glue/user_agent.cc 2011-11-05 17:29:13.809556210 +0100
3@@ -127,6 +127,12 @@
4
5 std::string user_agent;
4765ddf1
ER
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+
d3aab3e7
AM
13 // This is done to expose our product name in a manner that is maximally
14 // compatible with Safari, we hope!!
15
16@@ -134,11 +140,12 @@
4765ddf1 17 base::StringAppendF(
5bd8f63d 18 &user_agent,
21ae45bd 19 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
4765ddf1
ER
20- " (KHTML, like Gecko) %s Safari/%d.%d",
21+ " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
d3aab3e7 22 kUserAgentPlatform,
5bd8f63d 23 webkit_glue::BuildOSCpuInfo().c_str(),
4765ddf1
ER
24 WEBKIT_VERSION_MAJOR,
25 WEBKIT_VERSION_MINOR,
26+ realproduct.c_str(),
27 product.c_str(),
28 WEBKIT_VERSION_MAJOR,
29 WEBKIT_VERSION_MINOR);
This page took 0.041962 seconds and 4 git commands to generate.