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 29e6052fabb48307653260efd6bc6c248f984c2c..1800d28520d3cdb05a28549e50eeee3e08ba18c9 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -1018,7 +1018,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 = |
+ RenderProcessHost::run_renderer_in_process(); |
+ if (!rvh_impl->IsSwappedOut() && !single_process) { |
CHECK(!ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( |
render_view_host->GetProcess()->GetID())); |
} |