summaryrefslogtreecommitdiffstats
path: root/chrome/common/debug_flags.cc
diff options
context:
space:
mode:
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,