]> git.pld-linux.org Git - packages/chromium-browser.git/blobdiff - chromium_useragent.patch.in
disable debuginfo on 32bit hosts
[packages/chromium-browser.git] / chromium_useragent.patch.in
index 5a09c844f8839e3be2ef6236fade4e2c18502e13..d409ff0e48ca134717e6c7870478f3263f31dbec 100644 (file)
@@ -1,23 +1,21 @@
---- chromium-browser-11.0.691.0~svn20110304r76865/src/webkit/glue/user_agent.cc~       2011-03-04 05:00:41.000000000 +0200
-+++ chromium-browser-11.0.691.0~svn20110304r76865/src/webkit/glue/user_agent.cc        2011-03-04 18:55:33.180524092 +0200
-@@ -102,15 +102,22 @@
-   // maximally compatible with Safari, we hope!!
-   std::string product = GetProductVersion();
+--- chromium-browser-35.0.1916.114/content/common/user_agent.cc~       2014-05-14 22:22:09.000000000 +0300
++++ chromium-browser-35.0.1916.114/content/common/user_agent.cc        2014-05-25 22:43:45.378723143 +0300
+@@ -182,12 +182,20 @@
+   // This is done to expose our product name in a manner that is maximally
+   // compatible with Safari, we hope!!
+   std::string user_agent;
++
 +  // We want to also add Chromium
 +  std::string realproduct = product.c_str();
 +  size_t pos;
 +  if ((pos = realproduct.find("/")) != std::string::npos)
 +      realproduct.replace(0, pos, "Chromium");
 +
-   // Derived from Safari's UA string.
    base::StringAppendF(
-       result,
-       "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
--      " (KHTML, like Gecko) %s Safari/%d.%d",
-+      " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
-       mimic_windows ? "Windows " : kUserAgentPlatform,
-       BuildOSCpuInfo().c_str(),
+       &user_agent,
+-      "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) %s Safari/%d.%d",
++      "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
+       os_info.c_str(),
        WEBKIT_VERSION_MAJOR,
        WEBKIT_VERSION_MINOR,
 +      realproduct.c_str(),
This page took 0.040846 seconds and 4 git commands to generate.