~chromium-team/chromium-browser/chromium-browser.natty

« back to all changes in this revision

Viewing changes to debian/patches/chromium_useragent.patch.in

  • Committer: Micah Gersten
  • Date: 2012-01-13 05:28:02 UTC
  • Revision ID: micahg@ubuntu.com-20120113052802-8gjptyykk9ixkmy0
* Refresh patch
  - update debian/patches/chromium_useragent.patch.in

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
---
2
 
 webkit/glue/user_agent.cc |    9 ++++++++-
3
 
 1 file changed, 8 insertions(+), 1 deletion(-)
4
 
 
5
1
Index: src/webkit/glue/user_agent.cc
6
2
===================================================================
7
 
--- src.orig/webkit/glue/user_agent.cc
8
 
+++ src/webkit/glue/user_agent.cc
9
 
@@ -127,25 +127,32 @@
10
 
 #endif
11
 
 
12
 
   std::string user_agent;
13
 
 
14
 
   // Replace Safari's Version/X string with the product name/version passed in.
 
3
--- src.orig/webkit/glue/user_agent.cc  2011-10-20 21:31:42.228492515 +0100
 
4
+++ src/webkit/glue/user_agent.cc       2011-10-20 21:36:06.260487823 +0100
 
5
@@ -130,15 +130,22 @@
15
6
   // This is done to expose our product name in a manner that is maximally
16
7
   // compatible with Safari, we hope!!
17
8
 
27
18
       "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
28
19
-      " (KHTML, like Gecko) %s Safari/%d.%d",
29
20
+      " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
30
 
       mimic_windows ? "Windows " : kUserAgentPlatform,
 
21
       kUserAgentPlatform,
31
22
       webkit_glue::BuildOSCpuInfo().c_str(),
32
23
       WEBKIT_VERSION_MAJOR,
33
24
       WEBKIT_VERSION_MINOR,
35
26
       product.c_str(),
36
27
       WEBKIT_VERSION_MAJOR,
37
28
       WEBKIT_VERSION_MINOR);
38
 
   return user_agent;
39
 
 }
40
 
 
41
 
 }  // namespace webkit_glue
42