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)); |