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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 196009: Linux: set the process title (that shows in "ps" etc.) of renderers correctly when using the zygote. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chrome_dll_main.cc ('k') | chrome/browser/zygote_main_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/browser_render_process_host.cc
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 25770)
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
@@ -300,8 +300,12 @@
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 @@
}
#endif // OS_POSIX
- cmd_line.AppendSwitchWithValue(switches::kProcessType,
- switches::kRendererProcess);
-
cmd_line.AppendSwitchWithValue(switches::kProcessChannelID,
ASCIIToWide(channel_id));
« no previous file with comments | « chrome/app/chrome_dll_main.cc ('k') | chrome/browser/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698