Index: content/browser/frame_host/render_frame_host_manager.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc |
index 0dfdeaae6274c6845249c5eab665319a3083c627..41b2380bf1255c2cb5cd19090317ff9dba36f683 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -1008,7 +1008,11 @@ bool RenderFrameHostManager::InitRenderView(RenderViewHost* render_view_host, |
// process unless it's swapped out. |
RenderViewHostImpl* rvh_impl = |
static_cast<RenderViewHostImpl*>(render_view_host); |
- if (!rvh_impl->IsSwappedOut()) { |
+ // In single-process mode, we are forced to create all render views in |
+ // the same single process. |
+ bool single_process = |
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); |
nasko
2014/05/27 14:06:09
It will be better to use RenderProcessHost::run_re
Krzysztof Olczyk
2014/05/28 09:12:50
Done.
|
+ if (!rvh_impl->IsSwappedOut() && !single_process) { |
CHECK(!ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( |
render_view_host->GetProcess()->GetID())); |
} |