summaryrefslogtreecommitdiffstats
path: root/chrome/common/debug_flags.cc
diff options
context:
space:
mode:
authordimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 18:12:40 +0000
committerdimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 18:12:40 +0000
commit1f93ac11229c08f50f8fddb2359306e14fc0e32e (patch)
tree0397780ee790ddca8cf0f0177f32ea58e8e17a47 /chrome/common/debug_flags.cc
parent319bddcde6785e89817fd6c9f038c2d1c372342b (diff)
downloadchromium_src-1f93ac11229c08f50f8fddb2359306e14fc0e32e.zip
chromium_src-1f93ac11229c08f50f8fddb2359306e14fc0e32e.tar.gz
chromium_src-1f93ac11229c08f50f8fddb2359306e14fc0e32e.tar.bz2
Adding debugging switches to Worker process startup on POSIX systems.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1023005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/debug_flags.cc')
-rw-r--r--chrome/common/debug_flags.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/debug_flags.cc b/chrome/common/debug_flags.cc
index 4924f19..dd2eaee 100644
--- a/chrome/common/debug_flags.cc
+++ b/chrome/common/debug_flags.cc
@@ -20,6 +20,8 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kDebugChildren);
if (value.empty() ||
+ (type == ChildProcessInfo::WORKER_PROCESS &&
+ value == switches::kWorkerProcess) ||
(type == ChildProcessInfo::RENDER_PROCESS &&
value == switches::kRendererProcess) ||
(type == ChildProcessInfo::PLUGIN_PROCESS &&
@@ -33,6 +35,8 @@ bool DebugFlags::ProcessDebugFlags(CommandLine* command_line,
std::string value = current_cmd_line.GetSwitchValueASCII(
switches::kWaitForDebuggerChildren);
if (value.empty() ||
+ (type == ChildProcessInfo::WORKER_PROCESS &&
+ value == switches::kWorkerProcess) ||
(type == ChildProcessInfo::RENDER_PROCESS &&
value == switches::kRendererProcess) ||
(type == ChildProcessInfo::PLUGIN_PROCESS &&