Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
| index 96d6379ea1c7a0f20816fdab90f1694c949077b0..c7513e3dc9195d2024d4c191a9ffd3d2dfd5b83f 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -123,6 +123,10 @@ |
| #include "content/common/font_cache_dispatcher_win.h" |
| #endif |
| +#if defined(OS_ANDROID) |
| +#include "content/browser/browser_child_process_host_impl.h" |
|
jam
2012/10/11 19:38:17
not needed now
Yusuf
2012/10/11 20:22:37
Done.
|
| +#endif |
| + |
| #include "third_party/skia/include/core/SkBitmap.h" |
| extern bool g_exited_main_message_loop; |
| @@ -505,6 +509,11 @@ bool RenderProcessHostImpl::Init() { |
| AppendRendererCommandLine(cmd_line); |
| cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
| + if (CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kUseMobileUserAgent)) { |
| + cmd_line->AppendSwitch(switches::kUseMobileUserAgent); |
|
jam
2012/10/11 19:38:17
put this in kSwitchNames below
Yusuf
2012/10/11 20:22:37
Done.
|
| + } |
| + |
| // Spawn the child process asynchronously to avoid blocking the UI thread. |
| // As long as there's no renderer prefix, we can use the zygote process |
| // at this stage. |