Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1824573006: Don't attempt to register render processes with the shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 void RenderProcessHostImpl::EnableSendQueue() { 694 void RenderProcessHostImpl::EnableSendQueue() {
695 is_initialized_ = false; 695 is_initialized_ = false;
696 } 696 }
697 697
698 bool RenderProcessHostImpl::Init() { 698 bool RenderProcessHostImpl::Init() {
699 // calling Init() more than once does nothing, this makes it more convenient 699 // calling Init() more than once does nothing, this makes it more convenient
700 // for the view host which may not be sure in some cases 700 // for the view host which may not be sure in some cases
701 if (channel_) 701 if (channel_)
702 return true; 702 return true;
703 703
704 RegisterChildWithExternalShell(id_, instance_id_++, this);
705
706 base::CommandLine::StringType renderer_prefix; 704 base::CommandLine::StringType renderer_prefix;
707 // A command prefix is something prepended to the command line of the spawned 705 // A command prefix is something prepended to the command line of the spawned
708 // process. 706 // process.
709 const base::CommandLine& browser_command_line = 707 const base::CommandLine& browser_command_line =
710 *base::CommandLine::ForCurrentProcess(); 708 *base::CommandLine::ForCurrentProcess();
711 renderer_prefix = 709 renderer_prefix =
712 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix); 710 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix);
713 711
714 #if defined(OS_LINUX) 712 #if defined(OS_LINUX)
715 int flags = renderer_prefix.empty() ? ChildProcessHost::CHILD_ALLOW_SELF 713 int flags = renderer_prefix.empty() ? ChildProcessHost::CHILD_ALLOW_SELF
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 2815
2818 // Skip widgets in other processes. 2816 // Skip widgets in other processes.
2819 if (rvh->GetProcess()->GetID() != GetID()) 2817 if (rvh->GetProcess()->GetID() != GetID())
2820 continue; 2818 continue;
2821 2819
2822 rvh->OnWebkitPreferencesChanged(); 2820 rvh->OnWebkitPreferencesChanged();
2823 } 2821 }
2824 } 2822 }
2825 2823
2826 } // namespace content 2824 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698