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 0663346d8ce240e2b519724cc500d4d0b7f5a644..5ca9dea9a0ca20e1c8fa0de94a35d8f9ef427ae0 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.cc |
+++ b/content/browser/frame_host/render_frame_host_manager.cc |
@@ -1223,8 +1223,9 @@ bool RenderFrameHostManager::InitRenderView( |
render_view_host->AllowBindings(pending_web_ui()->GetBindings()); |
} else { |
// Ensure that we don't create an unprivileged RenderView in a WebUI-enabled |
- // process unless it's swapped out. |
- if (!render_view_host->IsSwappedOut()) { |
+ // process unless it's swapped out or we run in single-process mode. |
+ bool is_single_process = RenderProcessHost::run_renderer_in_process(); |
nasko
2014/09/29 22:21:48
nit: why create a local variable when you can just
Krzysztof Olczyk
2014/10/01 10:17:47
Done
|
+ if (!render_view_host->IsSwappedOut() && !is_single_process) { |
CHECK(!ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( |
render_view_host->GetProcess()->GetID())); |
} |