summaryrefslogtreecommitdiffstats
path: root/content/common/debug_flags.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 00:39:12 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 00:39:12 +0000
commitbd5d6cfd0e09e2123b948083bdaa39b2637b5143 (patch)
tree33cf977ea21078b69d7600ec4a12412fa23dc342 /content/common/debug_flags.cc
parent8d85a4b93067def07388e577b5c9e95de27f06b6 (diff)
downloadchromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.zip
chromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.tar.gz
chromium_src-bd5d6cfd0e09e2123b948083bdaa39b2637b5143.tar.bz2
Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildProcessInfo.
BUG=98716 Review URL: http://codereview.chromium.org/8760011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/debug_flags.cc')
-rw-r--r--content/common/debug_flags.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/content/common/debug_flags.cc b/content/common/debug_flags.cc
index aec7a5f..a64edd4 100644
--- a/content/common/debug_flags.cc
+++ b/content/common/debug_flags.cc
@@ -11,7 +11,7 @@
#include "ipc/ipc_switches.h"
bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
- ChildProcessInfo::ProcessType type,
+ content::ProcessType type,
bool is_in_sandbox) {
bool should_help_child = false;
const CommandLine& current_cmd_line = *CommandLine::ForCurrentProcess();
@@ -20,11 +20,11 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kDebugChildren);
if (value.empty() ||
- (type == ChildProcessInfo::WORKER_PROCESS &&
+ (type == content::PROCESS_TYPE_WORKER &&
value == switches::kWorkerProcess) ||
- (type == ChildProcessInfo::RENDER_PROCESS &&
+ (type == content::PROCESS_TYPE_RENDERER &&
value == switches::kRendererProcess) ||
- (type == ChildProcessInfo::PLUGIN_PROCESS &&
+ (type == content::PROCESS_TYPE_PLUGIN &&
value == switches::kPluginProcess)) {
command_line->AppendSwitch(switches::kDebugOnStart);
should_help_child = true;
@@ -35,11 +35,11 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kWaitForDebuggerChildren);
if (value.empty() ||
- (type == ChildProcessInfo::WORKER_PROCESS &&
+ (type == content::PROCESS_TYPE_WORKER &&
value == switches::kWorkerProcess) ||
- (type == ChildProcessInfo::RENDER_PROCESS &&
+ (type == content::PROCESS_TYPE_RENDERER &&
value == switches::kRendererProcess) ||
- (type == ChildProcessInfo::PLUGIN_PROCESS &&
+ (type == content::PROCESS_TYPE_PLUGIN &&
value == switches::kPluginProcess)) {
command_line->AppendSwitch(switches::kWaitForDebugger);
}