Index: content/browser/browser_main_runner.cc |
=================================================================== |
--- content/browser/browser_main_runner.cc (revision 132841) |
+++ content/browser/browser_main_runner.cc (working copy) |
@@ -13,6 +13,7 @@ |
#include "content/browser/browser_main_loop.h" |
#include "content/browser/notification_service_impl.h" |
#include "content/common/child_process.h" |
+#include "content/public/browser/render_process_host.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/common/main_function_params.h" |
@@ -47,6 +48,9 @@ |
if (parameters.command_line.HasSwitch(switches::kWaitForDebugger)) |
ChildProcess::WaitForDebugger("Browser"); |
+ if (parameters.command_line.HasSwitch(switches::kSingleProcess)) |
+ content::RenderProcessHost::set_run_renderer_in_process(true); |
+ |
statistics_.reset(new base::StatisticsRecorder); |
notification_service_.reset(new NotificationServiceImpl); |