From a436d92d5121ebfc9996682cfed4c3ad33313138 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 13 Feb 2009 23:16:42 +0000 Subject: Have ChildProcessInfo contain a list of all running child processes (i.e. instead of Service and other child process service maintain it). In a future change I'll start moving some of the code from PluginProcessHost to ChildProcessInfo. Review URL: http://codereview.chromium.org/24017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9804 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/debug_flags.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'chrome/common/debug_flags.cc') diff --git a/chrome/common/debug_flags.cc b/chrome/common/debug_flags.cc index 9f62cbe..97c2725 100644 --- a/chrome/common/debug_flags.cc +++ b/chrome/common/debug_flags.cc @@ -9,7 +9,7 @@ #include "chrome/common/chrome_switches.h" bool DebugFlags::ProcessDebugFlags(CommandLine* command_line, - ChildProcessType type, + ChildProcessInfo::ProcessType type, bool is_in_sandbox) { bool should_help_child = false; const CommandLine& current_cmd_line = *CommandLine::ForCurrentProcess(); @@ -18,8 +18,10 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line, std::wstring value; value = current_cmd_line.GetSwitchValue(switches::kDebugChildren); if (value.empty() || - (type == RENDERER && value == switches::kRendererProcess) || - (type == PLUGIN && value == switches::kPluginProcess)) { + (type == ChildProcessInfo::RENDER_PROCESS && + value == switches::kRendererProcess) || + (type == ChildProcessInfo::PLUGIN_PROCESS && + value == switches::kPluginProcess)) { command_line->AppendSwitch(switches::kDebugOnStart); should_help_child = true; } @@ -29,8 +31,10 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line, std::wstring value; value = current_cmd_line.GetSwitchValue(switches::kWaitForDebuggerChildren); if (value.empty() || - (type == RENDERER && value == switches::kRendererProcess) || - (type == PLUGIN && value == switches::kPluginProcess)) { + (type == ChildProcessInfo::RENDER_PROCESS && + value == switches::kRendererProcess) || + (type == ChildProcessInfo::PLUGIN_PROCESS && + value == switches::kPluginProcess)) { command_line->AppendSwitch(switches::kWaitForDebugger); } command_line->AppendSwitchWithValue(switches::kWaitForDebuggerChildren, -- cgit v1.1