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

Issue 10869073: Split user agent code out of the 'glue' target (Closed)

Created:
8 years, 3 months ago by stuartmorgan
Modified:
8 years, 3 months ago
Reviewers:
tony, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, pam+watch_chromium.org
Visibility:
Public.

Description

Split user agent code out of the 'glue' target This creates a new user_agent component target for the user agent handling code. This makes it straightforward for iOS to build only the user-agent part of glue. It should also make incremental dismantling of webkit/ easier, since the dependencies on user agent code are now explicit. The code that was in user_agent.cc/h (the webkit_user_agent target) has been moved to user_agent_util.cc/h, and folded into the user_agent component target. All user-agent related code has been moved to a new webkit/user_agent/ directory. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155695

Patch Set 1 #

Patch Set 2 : Fix headers, tests #

Patch Set 3 : Add new test file to patch #

Total comments: 2

Patch Set 4 : Make user agent a component #

Patch Set 5 : Create a new user_agent component target #

Patch Set 6 : Rebase #

Patch Set 7 : Header and dependency fixes #

Patch Set 8 : Move user-agent files to a new directory #

Total comments: 5

Patch Set 9 : Removed webkit_user_agent target #

Patch Set 10 : Rebase to trunk #

Patch Set 11 : Update a new reference to webkit_user_agent #

Patch Set 12 : Add missing dependency on 'base' #

Patch Set 13 : Add missing dependencies #

Patch Set 14 : Rebase to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -497 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/html_utils.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/renderer_glue.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome_frame/test/html_util_unittests.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/app/android/content_main.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_settings.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_content_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/user_agent.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -35 lines 0 comments Download
M webkit/glue/user_agent.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -182 lines 0 comments Download
M webkit/glue/webkit_glue.h View 1 chunk +0 lines, -11 lines 0 comments Download
M webkit/glue/webkit_glue.cc View 1 2 3 4 4 chunks +0 lines, -132 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -48 lines 0 comments Download
M webkit/glue/webkit_glue_unittest.cc View 1 2 chunks +0 lines, -48 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/npapi/plugin_host.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/url_request_info_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M webkit/support/webkit_support.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M webkit/support/webkit_support.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -1 line 0 comments Download
M webkit/support/webkit_support_glue.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell_test.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
A webkit/user_agent/user_agent.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A webkit/user_agent/user_agent.cc View 1 2 3 4 5 6 7 1 chunk +145 lines, -0 lines 0 comments Download
A webkit/user_agent/user_agent_unittest.cc View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A + webkit/user_agent/user_agent_util.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -10 lines 0 comments Download
A + webkit/user_agent/user_agent_util.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A webkit/user_agent/webkit_user_agent.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +72 lines, -0 lines 0 comments Download
A webkit/user_agent/webkit_user_agent_export.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
stuartmorgan
Per the email thread last week.
8 years, 3 months ago (2012-08-27 14:32:53 UTC) #1
tony
LGTM http://codereview.chromium.org/10869073/diff/11001/webkit/glue/user_agent_unittest.cc File webkit/glue/user_agent_unittest.cc (right): http://codereview.chromium.org/10869073/diff/11001/webkit/glue/user_agent_unittest.cc#newcode15 webkit/glue/user_agent_unittest.cc:15: class WebkitGlueUserAgentTest : public TestShellTest { Nit: If ...
8 years, 3 months ago (2012-08-27 17:58:36 UTC) #2
stuartmorgan
+jam for content/ and chrome/ OWNERS (changes there are trivial) http://codereview.chromium.org/10869073/diff/11001/webkit/glue/user_agent_unittest.cc File webkit/glue/user_agent_unittest.cc (right): http://codereview.chromium.org/10869073/diff/11001/webkit/glue/user_agent_unittest.cc#newcode15 ...
8 years, 3 months ago (2012-08-28 08:02:12 UTC) #3
jam
lgtm
8 years, 3 months ago (2012-08-28 16:08:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/11001
8 years, 3 months ago (2012-08-28 17:36:34 UTC) #5
commit-bot: I haz the power
Try job failure for 10869073-11001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-28 18:01:00 UTC) #6
stuartmorgan
Sigh; component builds. +dpranke and thakis, who seem from blame to be the experts here, ...
8 years, 3 months ago (2012-08-29 07:09:38 UTC) #7
stuartmorgan
Sigh, +dpranke and thakis for real. Please see previous comment for questions.
8 years, 3 months ago (2012-08-29 07:10:26 UTC) #8
Nico
On 2012/08/29 07:09:38, stuartmorgan wrote: > This is failing because the webkit_user_agent target, which the ...
8 years, 3 months ago (2012-08-29 15:52:50 UTC) #9
Dirk Pranke
On 2012/08/29 15:52:50, Nico wrote: > On 2012/08/29 07:09:38, stuartmorgan wrote: > > This is ...
8 years, 3 months ago (2012-08-29 16:38:40 UTC) #10
stuartmorgan
Tony, John, please take another look. This is now a very different CL, unfortunately. The ...
8 years, 3 months ago (2012-09-05 11:34:52 UTC) #11
tony
https://chromiumcodereview.appspot.com/10869073/diff/24005/webkit/user_agent/user_agent.cc File webkit/user_agent/user_agent.cc (right): https://chromiumcodereview.appspot.com/10869073/diff/24005/webkit/user_agent/user_agent.cc#newcode116 webkit/user_agent/user_agent.cc:116: BuildUserAgentFromProduct("Version/5.1.1 Safari/534.51.22"); It looks like this symbol is from ...
8 years, 3 months ago (2012-09-05 17:45:24 UTC) #12
stuartmorgan
https://chromiumcodereview.appspot.com/10869073/diff/24005/webkit/user_agent/user_agent.cc File webkit/user_agent/user_agent.cc (right): https://chromiumcodereview.appspot.com/10869073/diff/24005/webkit/user_agent/user_agent.cc#newcode116 webkit/user_agent/user_agent.cc:116: BuildUserAgentFromProduct("Version/5.1.1 Safari/534.51.22"); On 2012/09/05 17:45:24, tony wrote: > It ...
8 years, 3 months ago (2012-09-05 19:58:14 UTC) #13
tony
On 2012/09/05 19:58:14, stuartmorgan wrote: > Sorry, I should have explained better. It's included by ...
8 years, 3 months ago (2012-09-05 20:30:26 UTC) #14
stuartmorgan
Awesome; new version up that eliminates webkit_user_agent, and folds the code into user_agent as exported ...
8 years, 3 months ago (2012-09-06 13:34:30 UTC) #15
tony
LGTM. Looks like you'll have to wait for webkit deps to roll in r127691 before ...
8 years, 3 months ago (2012-09-06 19:14:15 UTC) #16
stuartmorgan
On 2012/09/06 19:14:15, tony wrote: > LGTM. Looks like you'll have to wait for webkit ...
8 years, 3 months ago (2012-09-07 07:06:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/28009
8 years, 3 months ago (2012-09-07 07:09:04 UTC) #18
commit-bot: I haz the power
Try job failure for 10869073-28009 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-07 07:34:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/26050
8 years, 3 months ago (2012-09-07 08:30:44 UTC) #20
commit-bot: I haz the power
Try job failure for 10869073-26050 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-07 08:46:30 UTC) #21
stuartmorgan
I thought I had all the component dependencies worked out, but apparently not (I was ...
8 years, 3 months ago (2012-09-07 09:04:26 UTC) #22
stuartmorgan
My local Mac component build is happy; fingers crossed. (webkit_support had been implicitly depending on ...
8 years, 3 months ago (2012-09-07 11:40:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/35006
8 years, 3 months ago (2012-09-07 11:40:45 UTC) #24
commit-bot: I haz the power
Try job failure for 10869073-35006 (retry) on mac_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 13:23:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/35006
8 years, 3 months ago (2012-09-07 13:29:57 UTC) #26
commit-bot: I haz the power
Try job failure for 10869073-35006 (retry) on mac_rel for step "sync_integration_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 15:31:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/35006
8 years, 3 months ago (2012-09-07 15:36:59 UTC) #28
commit-bot: I haz the power
Failed to apply patch for content/content_common.gypi: While running patch -p1 --forward --force; patching file content/content_common.gypi ...
8 years, 3 months ago (2012-09-07 18:11:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10869073/36105
8 years, 3 months ago (2012-09-10 07:56:35 UTC) #30
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 10:01:09 UTC) #31
Change committed as 155695

Powered by Google App Engine
This is Rietveld 408576698