]> git.pld-linux.org Git - packages/chromium-browser.git/blame - chromium_useragent.patch.in
workaround bad python path detection
[packages/chromium-browser.git] / chromium_useragent.patch.in
CommitLineData
71581184
ER
1--- chromium-browser-29.0.1547.55/webkit/common/user_agent/user_agent_util.cc~ 2013-08-16 19:03:28.000000000 +0300
2+++ chromium-browser-29.0.1547.55/webkit/common/user_agent/user_agent_util.cc 2013-08-18 13:39:00.749897316 +0300
3@@ -181,12 +181,20 @@
e9abb380
ER
4 // This is done to expose our product name in a manner that is maximally
5 // compatible with Safari, we hope!!
d3aab3e7 6 std::string user_agent;
e9abb380 7+
4765ddf1
ER
8+ // We want to also add Chromium
9+ std::string realproduct = product.c_str();
10+ size_t pos;
11+ if ((pos = realproduct.find("/")) != std::string::npos)
12+ realproduct.replace(0, pos, "Chromium");
13+
4765ddf1 14 base::StringAppendF(
5bd8f63d 15 &user_agent,
e9abb380 16- "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) %s Safari/%d.%d",
539fb34b 17+ "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
e9abb380 18 os_info.c_str(),
4765ddf1
ER
19 WEBKIT_VERSION_MAJOR,
20 WEBKIT_VERSION_MINOR,
21+ realproduct.c_str(),
22 product.c_str(),
23 WEBKIT_VERSION_MAJOR,
24 WEBKIT_VERSION_MINOR);
This page took 0.054508 seconds and 4 git commands to generate.