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
4 // maximally compatible with Safari, we hope!!
5 std::string product = GetProductVersion();
7 + // We want to also add Chromium
8 + std::string realproduct = product.c_str();
10 + if ((pos = realproduct.find("/")) != std::string::npos)
11 + realproduct.replace(0, pos, "Chromium");
13 // Derived from Safari's UA string.
16 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
17 - " (KHTML, like Gecko) %s Safari/%d.%d",
18 + " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
19 mimic_windows ? "Windows " : kUserAgentPlatform,
20 BuildOSCpuInfo().c_str(),
23 + realproduct.c_str(),
26 WEBKIT_VERSION_MINOR);