Index: content/app/content_main_runner.cc |
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc |
index 1846435082125f53e9e0e697e39b58afbe9c1cfc..99d081869cf5f18efe17d11efa97aba6bc392b06 100644 |
--- a/content/app/content_main_runner.cc |
+++ b/content/app/content_main_runner.cc |
@@ -50,7 +50,6 @@ |
#include "ui/base/ui_base_paths.h" |
#include "ui/base/ui_base_switches.h" |
#include "ui/gfx/win/dpi.h" |
-#include "webkit/common/user_agent/user_agent.h" |
#if defined(USE_TCMALLOC) |
#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h" |
@@ -379,14 +378,6 @@ int RunZygote(const MainFunctionParams& main_function_params, |
command_line.GetSwitchValueASCII(switches::kProcessType); |
ContentClientInitializer::Set(process_type, delegate); |
- // If a custom user agent was passed on the command line, we need |
- // to (re)set it now, rather than using the default one the zygote |
- // initialized. |
- if (command_line.HasSwitch(switches::kUserAgent)) { |
- webkit_glue::SetUserAgent( |
- command_line.GetSwitchValueASCII(switches::kUserAgent), true); |
- } |
- |
// The StatsTable must be initialized in each process; we already |
// initialized for the browser process, now we need to initialize |
// within the new processes as well. |
@@ -741,14 +732,6 @@ class ContentMainRunnerImpl : public ContentMainRunner { |
if (delegate) |
delegate->PreSandboxStartup(); |
- // Set any custom user agent passed on the command line now so the string |
- // doesn't change between calls to webkit_glue::GetUserAgent(), otherwise it |
- // defaults to the user agent set during SetContentClient(). |
- if (command_line.HasSwitch(switches::kUserAgent)) { |
- webkit_glue::SetUserAgent( |
- command_line.GetSwitchValueASCII(switches::kUserAgent), true); |
- } |
- |
if (!process_type.empty()) |
CommonSubprocessInit(process_type); |