]>
Commit | Line | Data |
---|---|---|
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( | |
15 | result, | |
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 ER |
19 | mimic_windows ? "Windows " : kUserAgentPlatform, |
20 | 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); |