diff options
author | dimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 18:12:40 +0000 |
---|---|---|
committer | dimich@chromium.org <dimich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 18:12:40 +0000 |
commit | 1f93ac11229c08f50f8fddb2359306e14fc0e32e (patch) | |
tree | 0397780ee790ddca8cf0f0177f32ea58e8e17a47 /chrome/common/debug_flags.cc | |
parent | 319bddcde6785e89817fd6c9f038c2d1c372342b (diff) | |
download | chromium_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.cc | 4 |
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 && |