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
5 std::string user_agent;
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 // This is done to expose our product name in a manner that is maximally
14 // compatible with Safari, we hope!!
19 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
20 - " (KHTML, like Gecko) %s Safari/%d.%d",
21 + " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
23 webkit_glue::BuildOSCpuInfo().c_str(),
26 + realproduct.c_str(),
29 WEBKIT_VERSION_MINOR);