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
4 // This is done to expose our product name in a manner that is maximally
5 // compatible with Safari, we hope!!
6 std::string user_agent;
8 + // We want to also add Chromium
9 + std::string realproduct = product.c_str();
11 + if ((pos = realproduct.find("/")) != std::string::npos)
12 + realproduct.replace(0, pos, "Chromium");
16 - "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) %s Safari/%d.%d",
17 + "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
21 + realproduct.c_str(),
24 WEBKIT_VERSION_MINOR);