diff options
Diffstat (limited to 'content/browser/renderer_host/render_view_host_impl.cc')
| -rw-r--r-- | content/browser/renderer_host/render_view_host_impl.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc index 14e1545..587f144 100644 --- a/content/browser/renderer_host/render_view_host_impl.cc +++ b/content/browser/renderer_host/render_view_host_impl.cc @@ -732,10 +732,8 @@ void RenderViewHostImpl::AllowBindings(int bindings_flags) { GetProcess()->GetID())) { // This process has no bindings yet. Make sure it does not have more // than this single active view. - RenderProcessHostImpl* process = - static_cast<RenderProcessHostImpl*>(GetProcess()); // --single-process only has one renderer. - if (process->GetActiveViewCount() > 1 && + if (GetProcess()->GetActiveViewCount() > 1 && !base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kSingleProcess)) return; |
