]> git.pld-linux.org Git - packages/chromium-browser.git/blob - chromium_useragent.patch.in
- up to 13.0.771.0-0.86035.1
[packages/chromium-browser.git] / chromium_useragent.patch.in
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 @@
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,
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(),
21        WEBKIT_VERSION_MAJOR,
22        WEBKIT_VERSION_MINOR,
23 +      realproduct.c_str(),
24        product.c_str(),
25        WEBKIT_VERSION_MAJOR,
26        WEBKIT_VERSION_MINOR);
This page took 0.068344 seconds and 3 git commands to generate.