diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index 1ae4e25b0f6dd8080ae4d4c29080cd7259cc714c..e78f2391e36c433d7aacdcdc6089f88ca7f1498e 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -344,6 +344,13 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, } CommandLine cmd_line(exe_path); + // Put the process type and plugin path first so they're easier to see + // in process listings using native process management tools. + cmd_line.AppendSwitchWithValue(switches::kProcessType, + switches::kPluginProcess); + cmd_line.AppendSwitchWithValue(switches::kPluginPath, + info.path.ToWStringHack()); + if (logging::DialogsAreSuppressed()) cmd_line.AppendSwitch(switches::kNoErrorDialogs); @@ -397,15 +404,9 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, DCHECK(!data_dir.empty()); cmd_line.AppendSwitchWithValue(switches::kPluginDataDir, data_dir); - cmd_line.AppendSwitchWithValue(switches::kProcessType, - switches::kPluginProcess); - cmd_line.AppendSwitchWithValue(switches::kProcessChannelID, ASCIIToWide(channel_id())); - cmd_line.AppendSwitchWithValue(switches::kPluginPath, - info.path.ToWStringHack()); - SetCrashReporterCommandLine(&cmd_line); base::ProcessHandle process = 0;