Skip to content
Snippets Groups Projects
Commit 588c54b0 authored by mdm@chromium.org's avatar mdm@chromium.org
Browse files

Move the --type=plugin and --plugin-path arguments to the beginning of the...

Move the --type=plugin and --plugin-path arguments to the beginning of the argument list for plugin processes.
BUG=22262
TEST=none

Review URL: http://codereview.chromium.org/212021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26627 0039d316-1c4b-4281-b951-d872f2087c98
parent 94950bbc
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment