Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 10854251: Allow the creation of partially spoofed user agents (Closed)

Created:
8 years, 4 months ago by gone
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, brettw-cc_chromium.org, sschmitz
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow the creation of partially spoofed user agents Refactors user agent generation so that we can create partially spoofed user agents for other platforms. BUG=128570 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153783

Patch Set 1 #

Patch Set 2 : Rebasing #

Total comments: 2

Patch Set 3 : Removed flag #

Total comments: 8

Patch Set 4 : Comments updated, looking into unit test #

Patch Set 5 : Adding test attempt #

Patch Set 6 : Fixed Android test #

Patch Set 7 : Style fix #

Patch Set 8 : Style fix #

Patch Set 9 : Reverted last patch set because of #ifdefed command line flag #

Total comments: 4

Patch Set 10 : Moving namespaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -10 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
A chrome/common/chrome_content_client_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M content/public/common/content_client.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/user_agent.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/glue/user_agent.cc View 1 2 3 4 1 chunk +11 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
gone
Hey James, is this what you were getting at in the other user agent review? ...
8 years, 4 months ago (2012-08-22 18:22:58 UTC) #1
gone
Expanding the reviewer list. Please have a look, if you can.
8 years, 4 months ago (2012-08-24 17:38:23 UTC) #2
gone
Adding dpranke for the chrome/ changes based on review logs.
8 years, 4 months ago (2012-08-24 17:46:14 UTC) #3
tony
Are there unittests for GetUserAgent on Android (or any other platform)? https://chromiumcodereview.appspot.com/10854251/diff/9001/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): ...
8 years, 4 months ago (2012-08-24 19:46:17 UTC) #4
gone
As far as I can tell, there aren't any unit tests that test GetUserAgent(). There's ...
8 years, 4 months ago (2012-08-24 20:35:10 UTC) #5
tony
LGTM. I think it would be useful to have a unittest that verifies that on ...
8 years, 4 months ago (2012-08-24 20:38:29 UTC) #6
Yaron
lgtm for android
8 years, 4 months ago (2012-08-24 20:43:59 UTC) #7
gone
Adding OWNER/reviewer for chrome/ directory.
8 years, 4 months ago (2012-08-24 21:00:34 UTC) #8
James Hawkins
chrome/ LGTM
8 years, 4 months ago (2012-08-24 21:30:22 UTC) #9
Charlie Reis
I agree with Tony about adding a unit_test, since there's a fair amount of logic ...
8 years, 4 months ago (2012-08-24 21:38:42 UTC) #10
gone
> I agree with Tony about adding a unit_test, since there's a fair amount of ...
8 years, 4 months ago (2012-08-24 23:50:34 UTC) #11
tony
On 2012/08/24 23:50:34, dfalcantara wrote: > > I agree with Tony about adding a unit_test, ...
8 years, 4 months ago (2012-08-24 23:55:58 UTC) #12
gone
On 2012/08/24 23:55:58, tony wrote: > Yes, I think it would be useful to verify ...
8 years, 4 months ago (2012-08-25 00:00:38 UTC) #13
Charlie Reis
https://chromiumcodereview.appspot.com/10854251/diff/14002/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/10854251/diff/14002/content/browser/android/content_view_core_impl.cc#newcode103 content/browser/android/content_view_core_impl.cc:103: // Automatically set it for all WebContents. On 2012/08/24 ...
8 years, 4 months ago (2012-08-25 00:11:10 UTC) #14
gone
Updated the comments; looking into a unit test now. https://chromiumcodereview.appspot.com/10854251/diff/14002/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/10854251/diff/14002/content/browser/android/content_view_core_impl.cc#newcode103 content/browser/android/content_view_core_impl.cc:103: ...
8 years, 4 months ago (2012-08-25 00:23:49 UTC) #15
gone
Added a unit test in chrome_content_client_unittest.cc; is this along the lines of what you're looking ...
8 years, 3 months ago (2012-08-28 17:32:45 UTC) #16
tony
Yes, that's what I had in mind. The unittest lgtm. https://chromiumcodereview.appspot.com/10854251/diff/22012/chrome/common/chrome_content_client_unittest.cc File chrome/common/chrome_content_client_unittest.cc (right): https://chromiumcodereview.appspot.com/10854251/diff/22012/chrome/common/chrome_content_client_unittest.cc#newcode12 ...
8 years, 3 months ago (2012-08-28 18:51:24 UTC) #17
Charlie Reis
Thanks. LGTM after Tony's suggestions.
8 years, 3 months ago (2012-08-28 19:14:14 UTC) #18
gone
Thanks! Sending it up to the CQ now. https://chromiumcodereview.appspot.com/10854251/diff/22012/chrome/common/chrome_content_client_unittest.cc File chrome/common/chrome_content_client_unittest.cc (right): https://chromiumcodereview.appspot.com/10854251/diff/22012/chrome/common/chrome_content_client_unittest.cc#newcode12 chrome/common/chrome_content_client_unittest.cc:12: namespace ...
8 years, 3 months ago (2012-08-28 20:25:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/10854251/31001
8 years, 3 months ago (2012-08-28 20:26:15 UTC) #20
commit-bot: I haz the power
8 years, 3 months ago (2012-08-28 23:25:59 UTC) #21
Change committed as 153783

Powered by Google App Engine
This is Rietveld 408576698