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

Issue 9623027: Move --user-agent overriding logic from chrome into content. (Closed)

Created:
8 years, 9 months ago by scherkus (not reviewing)
Modified:
8 years, 8 months ago
Reviewers:
Dirk Pranke, jam, gone
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Move --user-agent overriding logic from chrome into content. BUG=117259 TEST=start chrome and content_shell with and without --user-agent and visit a site like www.whatsmyuseragent.com to verify the expected user agent Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131365

Patch Set 1 #

Patch Set 2 : fix indent #

Total comments: 3

Patch Set 3 : rebase #

Patch Set 4 : again #

Patch Set 5 : one more time #

Patch Set 6 : replace SetContentClient() with Initialize() #

Total comments: 8

Patch Set 7 : set UA inside SetContentClient() #

Patch Set 8 : cleanup #

Total comments: 5

Patch Set 9 : fixed comment #

Patch Set 10 : no moar dcheck #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -36 lines) Patch
M chrome/common/chrome_content_client.h View 1 2 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 1 chunk +5 lines, -12 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -3 lines 0 comments Download
M content/public/common/content_client.h View 1 2 6 1 chunk +2 lines, -4 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -10 lines 0 comments Download
M content/shell/shell_content_client.h View 1 2 6 1 chunk +1 line, -1 line 0 comments Download
D content/shell/shell_content_client.cc View 1 2 3 6 1 chunk +1 line, -2 lines 0 comments Download
M content/test/test_content_client.h View 1 2 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_content_client.cc View 1 2 6 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
scherkus (not reviewing)
(sorry for spam -- app engine was down) jam: please review dpranke: FYI as I ...
8 years, 9 months ago (2012-03-08 01:03:49 UTC) #1
scherkus (not reviewing)
oh boy looks like I totally hosed linux browser_tests :\
8 years, 9 months ago (2012-03-08 01:04:41 UTC) #2
jam
I'll defer to Dirk since he wrote this. I think the place where you set ...
8 years, 9 months ago (2012-03-08 01:07:58 UTC) #3
Dirk Pranke
Sorry for the delay in getting to this; I was distracted by car troubles this ...
8 years, 9 months ago (2012-03-08 07:48:08 UTC) #4
scherkus (not reviewing)
On 2012/03/08 07:48:08, Dirk Pranke wrote: > Sorry for the delay in getting to this; ...
8 years, 9 months ago (2012-03-08 21:58:19 UTC) #5
scherkus (not reviewing)
On 2012/03/08 21:58:19, scherkus wrote: > On 2012/03/08 07:48:08, Dirk Pranke wrote: > > Sorry ...
8 years, 9 months ago (2012-03-20 11:09:45 UTC) #6
Dirk Pranke
On 2012/03/20 11:09:45, scherkus wrote: > On 2012/03/08 21:58:19, scherkus wrote: > > On 2012/03/08 ...
8 years, 9 months ago (2012-03-21 01:02:45 UTC) #7
scherkus (not reviewing)
ack -- so it looks like a lot of our various chrome/content unit test helpers ...
8 years, 9 months ago (2012-03-27 03:47:36 UTC) #8
scherkus (not reviewing)
ping jam/dpranke re: what to do about all the test targets that relied on SetContentClient() ...
8 years, 8 months ago (2012-03-30 20:11:58 UTC) #9
Dirk Pranke
Sorry for the delay on this ... my head has been in webkit-gardening-land lately ...
8 years, 8 months ago (2012-04-03 19:17:02 UTC) #10
scherkus (not reviewing)
On Tue, Apr 3, 2012 at 12:16 PM, Dirk Pranke <dpranke@chromium.org> wrote: > Sorry for ...
8 years, 8 months ago (2012-04-05 19:13:01 UTC) #11
Dirk Pranke
On Thu, Apr 5, 2012 at 12:12 PM, Andrew Scherkus <scherkus@chromium.org> wrote: > On Tue, ...
8 years, 8 months ago (2012-04-05 19:28:16 UTC) #12
scherkus (not reviewing)
take a look -- it's better in some areas, slightly worse in others :) https://chromiumcodereview.appspot.com/9623027/diff/29001/chrome/app/chrome_main_delegate.cc ...
8 years, 8 months ago (2012-04-05 23:20:45 UTC) #13
Dirk Pranke
This looks basically okay to me, but I defer to John for the changes to ...
8 years, 8 months ago (2012-04-05 23:35:54 UTC) #14
scherkus (not reviewing)
I do like how calling back through the client centralizes where UA strings are determined ...
8 years, 8 months ago (2012-04-05 23:58:33 UTC) #15
jam
I prefer avoiding Intialize/Uninitialize. Right now we don't support uninitializing since there could be other ...
8 years, 8 months ago (2012-04-06 00:35:06 UTC) #16
scherkus (not reviewing)
On 2012/04/06 00:35:06, John Abd-El-Malek wrote: > I prefer avoiding Intialize/Uninitialize. Right now we don't ...
8 years, 8 months ago (2012-04-06 00:38:20 UTC) #17
scherkus (not reviewing)
PTAL
8 years, 8 months ago (2012-04-06 01:26:20 UTC) #18
jam
On 2012/04/06 00:38:20, scherkus wrote: > On 2012/04/06 00:35:06, John Abd-El-Malek wrote: > > I ...
8 years, 8 months ago (2012-04-06 23:09:23 UTC) #19
jam
http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc#newcode475 content/app/content_main_runner.cc:475: << "SetContentClient() must be called by this point in ...
8 years, 8 months ago (2012-04-06 23:13:52 UTC) #20
scherkus (not reviewing)
http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc#newcode475 content/app/content_main_runner.cc:475: << "SetContentClient() must be called by this point in ...
8 years, 8 months ago (2012-04-06 23:59:40 UTC) #21
jam
http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): http://codereview.chromium.org/9623027/diff/33002/content/app/content_main_runner.cc#newcode475 content/app/content_main_runner.cc:475: << "SetContentClient() must be called by this point in ...
8 years, 8 months ago (2012-04-07 00:03:07 UTC) #22
scherkus (not reviewing)
overly defensive DCHECK() removed ran tests, content_shell, chrome, etc... and it turns out we really ...
8 years, 8 months ago (2012-04-07 01:32:44 UTC) #23
Dirk Pranke
Okay, so given where we now are with this patch, it seems like it can ...
8 years, 8 months ago (2012-04-07 01:52:29 UTC) #24
scherkus (not reviewing)
On 2012/04/07 01:52:29, Dirk Pranke wrote: > Okay, so given where we now are with ...
8 years, 8 months ago (2012-04-07 01:58:47 UTC) #25
Dirk Pranke
On Fri, Apr 6, 2012 at 6:58 PM, <scherkus@chromium.org> wrote: > On 2012/04/07 01:52:29, Dirk ...
8 years, 8 months ago (2012-04-07 02:02:30 UTC) #26
gone
> >If so, yes I removed that ability from content > > clients. I'm not ...
8 years, 8 months ago (2012-04-07 02:47:27 UTC) #27
scherkus (not reviewing)
Thanks for the info! So Dan do you have any issues landing this CL as ...
8 years, 8 months ago (2012-04-07 03:01:15 UTC) #28
gone
On 2012/04/07 03:01:15, scherkus wrote: > Thanks for the info! > > So Dan do ...
8 years, 8 months ago (2012-04-07 03:03:42 UTC) #29
jam
8 years, 8 months ago (2012-04-09 15:54:47 UTC) #30
lgtm

Powered by Google App Engine
This is Rietveld 408576698