diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 18:02:17 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 18:02:17 +0000 |
commit | 7f113f39afed41b39d5c937039879c5d822c6b5e (patch) | |
tree | db014b39bf9cdc6daf6aae947a16c4c5ff5d1721 /chrome/browser/renderer_host | |
parent | e4e3caed74ecfe1ef1da4c7ba8fc076f59a53ef1 (diff) | |
download | chromium_src-7f113f39afed41b39d5c937039879c5d822c6b5e.zip chromium_src-7f113f39afed41b39d5c937039879c5d822c6b5e.tar.gz chromium_src-7f113f39afed41b39d5c937039879c5d822c6b5e.tar.bz2 |
Linux: set the process title (that shows in "ps" etc.) of renderers correctly when using the zygote.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/196009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/browser_render_process_host.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc index 25bb3d4..6d9e8a8 100644 --- a/chrome/browser/renderer_host/browser_render_process_host.cc +++ b/chrome/browser/renderer_host/browser_render_process_host.cc @@ -300,8 +300,12 @@ bool BrowserRenderProcessHost::Init() { if (logging::DialogsAreSuppressed()) cmd_line.AppendSwitch(switches::kNoErrorDialogs); - // propagate the following switches to the renderer command line - // (along with any associated values) if present in the browser command line + // Pass the process type first, so it shows first in process listings. + cmd_line.AppendSwitchWithValue(switches::kProcessType, + switches::kRendererProcess); + + // Propagate the following switches to the renderer command line (along + // with any associated values) if present in the browser command line. static const wchar_t* const switch_names[] = { switches::kRendererAssertTest, switches::kRendererCrashTest, @@ -372,9 +376,6 @@ bool BrowserRenderProcessHost::Init() { } #endif // OS_POSIX - cmd_line.AppendSwitchWithValue(switches::kProcessType, - switches::kRendererProcess); - cmd_line.AppendSwitchWithValue(switches::kProcessChannelID, ASCIIToWide(channel_id)); |