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

Issue 8296011: Make setting the user agent work with the zygote on linux. (Closed)

Created:
9 years, 2 months ago by Dirk Pranke
Modified:
9 years, 2 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Make setting the user agent work with the zygote on linux. Previously the user agent was set when we set the content client, which was set in the zygote, which didn't have a command line. Now, we still set the user agent in the zygote, but if the --user-agent command line switch is passed, we will reset the user agent in ZygoteMain. R=jam@chromium.org BUG=99418 TEST=run chrome with --user-agent=foo on linux, visit whatsmyuseragent.com, ensure 'foo' is displayed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107012

Patch Set 1 #

Total comments: 5

Patch Set 2 : just use setuseragent() #

Patch Set 3 : fix formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M content/app/content_main.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Dirk Pranke
9 years, 2 months ago (2011-10-15 00:40:58 UTC) #1
jam
http://codereview.chromium.org/8296011/diff/1/content/app/content_main.cc File content/app/content_main.cc (right): http://codereview.chromium.org/8296011/diff/1/content/app/content_main.cc#newcode213 content/app/content_main.cc:213: if (custom) { nit: this file doesn't use brace ...
9 years, 2 months ago (2011-10-15 01:32:04 UTC) #2
Dirk Pranke
http://codereview.chromium.org/8296011/diff/1/content/app/content_main.cc File content/app/content_main.cc (right): http://codereview.chromium.org/8296011/diff/1/content/app/content_main.cc#newcode213 content/app/content_main.cc:213: if (custom) { On 2011/10/15 01:32:04, John Abd-El-Malek wrote: ...
9 years, 2 months ago (2011-10-15 02:14:07 UTC) #3
jam
http://codereview.chromium.org/8296011/diff/1/webkit/glue/webkit_glue.h File webkit/glue/webkit_glue.h (right): http://codereview.chromium.org/8296011/diff/1/webkit/glue/webkit_glue.h#newcode100 webkit/glue/webkit_glue.h:100: // been called). On 2011/10/15 02:14:07, Dirk Pranke wrote: ...
9 years, 2 months ago (2011-10-17 03:43:22 UTC) #4
Dirk Pranke
On 2011/10/17 03:43:22, John Abd-El-Malek wrote: > http://codereview.chromium.org/8296011/diff/1/webkit/glue/webkit_glue.h > File webkit/glue/webkit_glue.h (right): > > http://codereview.chromium.org/8296011/diff/1/webkit/glue/webkit_glue.h#newcode100 ...
9 years, 2 months ago (2011-10-17 19:56:45 UTC) #5
jam
On 2011/10/17 19:56:45, Dirk Pranke wrote: > On 2011/10/17 03:43:22, John Abd-El-Malek wrote: > > ...
9 years, 2 months ago (2011-10-17 22:25:42 UTC) #6
Dirk Pranke
John, can you take another look please?
9 years, 2 months ago (2011-10-24 21:15:13 UTC) #7
jam
9 years, 2 months ago (2011-10-24 22:18:07 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698