diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 00:23:19 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 00:23:19 +0000 |
commit | bca7c76708234959efe907c85bb729df27db1e7f (patch) | |
tree | 1cd84d02629c01ed493e5a57bf532ae1cef9e59b /chrome/browser/renderer_host | |
parent | f4d6173a1f95178f4671ba88459db196badfdfac (diff) | |
download | chromium_src-bca7c76708234959efe907c85bb729df27db1e7f.zip chromium_src-bca7c76708234959efe907c85bb729df27db1e7f.tar.gz chromium_src-bca7c76708234959efe907c85bb729df27db1e7f.tar.bz2 |
Provide a separate app bundle for subprocesses like the renderer on the Mac.
Remove LSUIElement and related hacks from the browser's app bundle.
BUG=8044
TEST=Observe one Chromium and one or more Chromium Helper processes in
Activity Monitor
Review URL: http://codereview.chromium.org/164177
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/browser_render_process_host.cc | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc index 0fc5e05..07b7c7e 100644 --- a/chrome/browser/renderer_host/browser_render_process_host.cc +++ b/chrome/browser/renderer_host/browser_render_process_host.cc @@ -47,6 +47,7 @@ #include "chrome/browser/visitedlink_master.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/child_process_info.h" +#include "chrome/common/child_process_host.h" #include "chrome/common/chrome_descriptors.h" #include "chrome/common/logging_chrome.h" #include "chrome/common/notification_service.h" @@ -201,16 +202,6 @@ class VisitedLinkUpdater { VisitedLinkCommon::Fingerprints pending_; }; - -// Used for a View_ID where the renderer has not been attached yet -const int32 kInvalidViewID = -1; - -// Get the path to the renderer executable, which is the same as the -// current executable. -bool GetRendererPath(std::wstring* cmd_line) { - return PathService::Get(base::FILE_EXE, cmd_line); -} - BrowserRenderProcessHost::BrowserRenderProcessHost(Profile* profile) : RenderProcessHost(profile), visible_widgets_(0), @@ -307,15 +298,12 @@ bool BrowserRenderProcessHost::Init() { // Build command line for renderer, we have to quote the executable name to // deal with spaces. - std::wstring renderer_path = - browser_command_line.GetSwitchValue(switches::kBrowserSubprocessPath); + std::wstring renderer_path = ChildProcessHost::GetChildPath(); if (renderer_path.empty()) { - if (!GetRendererPath(&renderer_path)) { - // Need to reset the channel we created above or others might think the - // connection is live. - channel_.reset(); - return false; - } + // Need to reset the channel we created above or others might think the + // connection is live. + channel_.reset(); + return false; } CommandLine cmd_line(renderer_path); if (logging::DialogsAreSuppressed()) |