]> git.pld-linux.org Git - packages/chromium-browser.git/blob - chromium_useragent.patch.in
- initial update to 16.0.912.21~r108057
[packages/chromium-browser.git] / chromium_useragent.patch.in
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
3 @@ -127,6 +127,12 @@
4  
5    std::string user_agent;
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    // This is done to expose our product name in a manner that is maximally
14    // compatible with Safari, we hope!!
15  
16 @@ -134,11 +140,12 @@
17    base::StringAppendF(
18        &user_agent,
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",
22        kUserAgentPlatform,
23        webkit_glue::BuildOSCpuInfo().c_str(),
24        WEBKIT_VERSION_MAJOR,
25        WEBKIT_VERSION_MINOR,
26 +      realproduct.c_str(),
27        product.c_str(),
28        WEBKIT_VERSION_MAJOR,
29        WEBKIT_VERSION_MINOR);
This page took 0.038735 seconds and 4 git commands to generate.