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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11066087: Upstream BrowserChildProcessHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed file and the static method and added the call to render_process_host_impl.cc Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698