| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <windows.h> | |
| 6 | |
| 7 #include "chrome/common/debug_flags.h" | 5 #include "chrome/common/debug_flags.h" |
| 8 | 6 |
| 9 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 10 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 11 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 12 | 10 |
| 13 bool DebugFlags::ProcessDebugFlags(std::wstring* command_line, | 11 bool DebugFlags::ProcessDebugFlags(std::wstring* command_line, |
| 14 ChildProcessType type, | 12 ChildProcessType type, |
| 15 bool is_in_sandbox) { | 13 bool is_in_sandbox) { |
| 16 bool should_help_child = false; | 14 bool should_help_child = false; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 36 (type == RENDERER && value == switches::kRendererProcess) || | 34 (type == RENDERER && value == switches::kRendererProcess) || |
| 37 (type == PLUGIN && value == switches::kPluginProcess)) { | 35 (type == PLUGIN && value == switches::kPluginProcess)) { |
| 38 CommandLine::AppendSwitch(command_line, switches::kWaitForDebugger); | 36 CommandLine::AppendSwitch(command_line, switches::kWaitForDebugger); |
| 39 } | 37 } |
| 40 CommandLine::AppendSwitchWithValue(command_line, | 38 CommandLine::AppendSwitchWithValue(command_line, |
| 41 switches::kWaitForDebuggerChildren, | 39 switches::kWaitForDebuggerChildren, |
| 42 value); | 40 value); |
| 43 } | 41 } |
| 44 return should_help_child; | 42 return should_help_child; |
| 45 } | 43 } |
| OLD | NEW |