summaryrefslogtreecommitdiffstats
path: root/content/common/child_thread.cc
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-26 18:30:34 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-26 18:30:34 +0000
commit79bd6e8691a7ff0b1d2b66a54cd09c9b874da8f9 (patch)
tree2c8c644bbe31800f3053156f73fb44cb3ef7a291 /content/common/child_thread.cc
parent0b91391a2054c836e6710eb19d00342164791a0f (diff)
downloadchromium_src-79bd6e8691a7ff0b1d2b66a54cd09c9b874da8f9.zip
chromium_src-79bd6e8691a7ff0b1d2b66a54cd09c9b874da8f9.tar.gz
chromium_src-79bd6e8691a7ff0b1d2b66a54cd09c9b874da8f9.tar.bz2
Re-land r102336 (remove webkit_glue::BuildUserAgent) w/ fix.
Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so that SetUserAgent() must be called before GetUserAgent(). This was causing a dependency inversion between webkit_support and its clients, and was needed for the content component build. For content users, calling SetContentClient() will automatically initialize the user agent (retrieved from client->GetUserAgent()). As a bonus, fixing this allowed me to re-test the "mimic_windows" code path and it looks like we no longer need it. R=jam@chromium.org,rsesek@chromium.org BUG=11136, 90442 TEST=visit yahoo! mail using Chromium on Linux, ensure that we don't get an "unsupported browser" warning. Review URL: http://codereview.chromium.org/8045005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/child_thread.cc')
-rw-r--r--content/common/child_thread.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc
index f76c2a5..bfde285 100644
--- a/content/common/child_thread.cc
+++ b/content/common/child_thread.cc
@@ -41,12 +41,6 @@ void ChildThread::Init() {
check_with_browser_before_shutdown_ = false;
on_channel_error_called_ = false;
message_loop_ = MessageLoop::current();
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserAgent)) {
- webkit_glue::SetUserAgent(
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kUserAgent));
- }
-
channel_.reset(new IPC::SyncChannel(channel_name_,
IPC::Channel::MODE_CLIENT, this,
ChildProcess::current()->io_message_loop_proxy(), true,