summaryrefslogtreecommitdiffstats
path: root/chrome/common/debug_flags.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 23:16:42 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-13 23:16:42 +0000
commita436d92d5121ebfc9996682cfed4c3ad33313138 (patch)
tree55c32ef45ccc9e808e98074b5a26565239ed06fc /chrome/common/debug_flags.cc
parentb2ca508afc56d4b7f6d5b036dd721604440210b3 (diff)
downloadchromium_src-a436d92d5121ebfc9996682cfed4c3ad33313138.zip
chromium_src-a436d92d5121ebfc9996682cfed4c3ad33313138.tar.gz
chromium_src-a436d92d5121ebfc9996682cfed4c3ad33313138.tar.bz2
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
Diffstat (limited to 'chrome/common/debug_flags.cc')
-rw-r--r--chrome/common/debug_flags.cc14
1 files changed, 9 insertions, 5 deletions
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,