Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: content/common/debug_flags.cc

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/debug_flags.h ('k') | content/common/sandbox_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/debug_flags.cc
===================================================================
--- content/common/debug_flags.cc (revision 112315)
+++ content/common/debug_flags.cc (working copy)
@@ -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 @@
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 @@
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);
}
« no previous file with comments | « content/common/debug_flags.h ('k') | content/common/sandbox_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698