1
Index: src/webkit/glue/user_agent.cc
1
Index: src/webkit/user_agent/user_agent_util.cc
2
2
===================================================================
3
--- src.orig/webkit/glue/user_agent.cc 2011-10-20 21:31:42.228492515 +0100
4
+++ src/webkit/glue/user_agent.cc 2011-10-20 21:36:06.260487823 +0100
3
--- src.orig/webkit/user_agent/user_agent_util.cc 2012-09-14 11:36:29.000000000 +0300
4
+++ src/webkit/user_agent/user_agent_util.cc 2012-09-14 14:33:55.224741273 +0300
6
// Derived from Safari's UA string.
6
7
// This is done to expose our product name in a manner that is maximally
7
8
// compatible with Safari, we hope!!
9
10
+ // We want to also add Chromium
10
11
+ std::string realproduct = product.c_str();
12
13
+ if ((pos = realproduct.find("/")) != std::string::npos)
13
14
+ realproduct.replace(0, pos, "Chromium");
15
// Derived from Safari's UA string.
16
std::string user_agent;
16
17
base::StringAppendF(
18
"Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
19
- " (KHTML, like Gecko) %s Safari/%d.%d",
20
+ " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
22
webkit_glue::BuildOSCpuInfo().c_str(),
19
- "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) %s Safari/%d.%d",
20
+ "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
23
22
WEBKIT_VERSION_MAJOR,
24
23
WEBKIT_VERSION_MINOR,
25
24
+ realproduct.c_str(),