Merge lp:~brandonsnider/chromium-browser/chromium-browser.beta.daily into lp:~chromium-team/chromium-browser/chromium-browser.beta

Proposed by Brandon Snider
Status: Merged
Merged at revision: 526
Proposed branch: lp:~brandonsnider/chromium-browser/chromium-browser.beta.daily
Merge into: lp:~chromium-team/chromium-browser/chromium-browser.beta
Diff against target: 68 lines (+10/-19)
2 files modified
debian/changelog (+2/-2)
debian/patches/chromium_useragent.patch.in (+8/-17)
To merge this branch: bzr merge lp:~brandonsnider/chromium-browser/chromium-browser.beta.daily
Reviewer Review Type Date Requested Status
Chromium team Pending
Review via email: mp+85777@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-10-21 19:50:08 +0000
+++ debian/changelog 2011-12-15 01:53:00 +0000
@@ -1,4 +1,4 @@
1chromium-browser (14.0.835.35~r96116-0ubuntu1) UNRELEASED; urgency=low1chromium-browser (16.0.912.63~r113337-0ubuntu1) UNRELEASED; urgency=low
22
3 [ Fabien Tassin ]3 [ Fabien Tassin ]
4 * New upstream release from the Beta channel4 * New upstream release from the Beta channel
@@ -27,7 +27,7 @@
27 - update debian/rules27 - update debian/rules
28 - update debian/cdbs/tarball.mk28 - update debian/cdbs/tarball.mk
2929
30 -- Chris Coulson <chris.coulson@canonical.com> Fri, 21 Oct 2011 20:49:29 +010030 -- Chris Coulson <chrisccoulson@chinstrap.canonical.com> Thu, 08 Dec 2011 08:24:42 +0000
3131
32chromium-browser (13.0.782.215~r97094-0ubuntu1) oneiric; urgency=high32chromium-browser (13.0.782.215~r97094-0ubuntu1) oneiric; urgency=high
3333
3434
=== modified file 'debian/patches/chromium_useragent.patch.in'
--- debian/patches/chromium_useragent.patch.in 2011-08-11 19:22:20 +0000
+++ debian/patches/chromium_useragent.patch.in 2011-12-15 01:53:00 +0000
@@ -6,28 +6,24 @@
6===================================================================6===================================================================
7--- src.orig/webkit/glue/user_agent.cc7--- src.orig/webkit/glue/user_agent.cc
8+++ src/webkit/glue/user_agent.cc8+++ src/webkit/glue/user_agent.cc
9@@ -127,25 +127,32 @@9@@ -129,16 +129,23 @@ std::string BuildUserAgentFromProduct(co
10 #endif10
11
12 std::string user_agent;
13
14 // Replace Safari's Version/X string with the product name/version passed in.
15 // This is done to expose our product name in a manner that is maximally11 // This is done to expose our product name in a manner that is maximally
16 // compatible with Safari, we hope!!12 // compatible with Safari, we hope!!
17
18+ // We want to also add Chromium13+ // We want to also add Chromium
19+ std::string realproduct = product.c_str();
20+ size_t pos;
21+ if ((pos = realproduct.find("/")) != std::string::npos)
22+ realproduct.replace(0, pos, "Chromium");
23+14+
15+std::string realproduct = product.c_str();
16+size_t pos;
17+if ((pos = realproduct.find("/")) != std::string::npos)
18+ realproduct.replace(0, pos, "Chromium");
19
24 // Derived from Safari's UA string.20 // Derived from Safari's UA string.
25 base::StringAppendF(21 base::StringAppendF(
26 &user_agent,22 &user_agent,
27 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"23 "Mozilla/5.0 (%s%s) AppleWebKit/%d.%d"
28- " (KHTML, like Gecko) %s Safari/%d.%d",24- " (KHTML, like Gecko) %s Safari/%d.%d",
29+ " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",25+ " (KHTML, like Gecko) @BUILD_DIST_NAME@/@BUILD_DIST_VERSION@ %s %s Safari/%d.%d",
30 mimic_windows ? "Windows " : kUserAgentPlatform,26 kUserAgentPlatform,
31 webkit_glue::BuildOSCpuInfo().c_str(),27 webkit_glue::BuildOSCpuInfo().c_str(),
32 WEBKIT_VERSION_MAJOR,28 WEBKIT_VERSION_MAJOR,
33 WEBKIT_VERSION_MINOR,29 WEBKIT_VERSION_MINOR,
@@ -35,8 +31,3 @@
35 product.c_str(),31 product.c_str(),
36 WEBKIT_VERSION_MAJOR,32 WEBKIT_VERSION_MAJOR,
37 WEBKIT_VERSION_MINOR);33 WEBKIT_VERSION_MINOR);
38 return user_agent;
39 }
40
41 } // namespace webkit_glue
42

Subscribers

People subscribed via source and target branches