~chromium-team/chromium-browser/artful-beta

« back to all changes in this revision

Viewing changes to debian/patches/chromium_useragent.patch

  • Committer: Chad Miller
  • Date: 2014-06-27 18:21:09 UTC
  • Revision ID: chad.miller@canonical.com-20140627182109-i4b5f8lzcf0lhl5h
New upstream release 35.0.1916.153.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Description: Add "Chromium" and "Ubuntu" to the user-agent text.
2
2
Author: Chad Miller <chad.miller@canonical.com>
3
3
 
4
 
--- a/webkit/common/user_agent/user_agent_util.cc
5
 
+++ b/webkit/common/user_agent/user_agent_util.cc
6
 
@@ -176,13 +176,21 @@ std::string BuildUserAgentFromOSAndProdu
 
4
Index: chromium-browser-35.0.1916.153/content/common/user_agent.cc
 
5
===================================================================
 
6
--- chromium-browser-35.0.1916.153.orig/content/common/user_agent.cc
 
7
+++ chromium-browser-35.0.1916.153/content/common/user_agent.cc
 
8
@@ -181,13 +181,21 @@
7
9
   // Derived from Safari's UA string.
8
10
   // This is done to expose our product name in a manner that is maximally
9
11
   // compatible with Safari, we hope!!
10
 
+
11
12
+  // We want to also add Chromium
 
13
+
12
14
+  std::string realproduct = product.c_str();
13
15
+  size_t pos;
14
16
+  if ((pos = realproduct.find("/")) != std::string::npos)