OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // If the program includes base/debug/debug_on_start_win.h, the process will | 9 // If the program includes base/debug/debug_on_start_win.h, the process will |
10 // (on Windows only) start the JIT system-registered debugger on itself and | 10 // (on Windows only) start the JIT system-registered debugger on itself and |
11 // will wait for 60 seconds for the debugger to attach to itself. Then a break | 11 // will wait for 60 seconds for the debugger to attach to itself. Then a break |
12 // point will be hit. | 12 // point will be hit. |
13 const char kDebugOnStart[] = "debug-on-start"; | 13 const char kDebugOnStart[] = "debug-on-start"; |
14 | 14 |
15 // Disables the crash reporting. | 15 // Disables the crash reporting. |
16 const char kDisableBreakpad[] = "disable-breakpad"; | 16 const char kDisableBreakpad[] = "disable-breakpad"; |
17 | 17 |
| 18 // Indicates that crash reporting should be enabled. On platforms where helper |
| 19 // processes cannot access to files needed to make this decision, this flag is |
| 20 // generated internally. |
| 21 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
| 22 |
18 // Enable DCHECKs in release mode. | 23 // Enable DCHECKs in release mode. |
19 const char kEnableDCHECK[] = "enable-dcheck"; | 24 const char kEnableDCHECK[] = "enable-dcheck"; |
20 | 25 |
21 // Generates full memory crash dump. | 26 // Generates full memory crash dump. |
22 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; | 27 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
23 | 28 |
24 // Suppresses all error dialogs when present. | 29 // Suppresses all error dialogs when present. |
25 const char kNoErrorDialogs[] = "noerrdialogs"; | 30 const char kNoErrorDialogs[] = "noerrdialogs"; |
26 | 31 |
27 // When running certain tests that spawn child processes, this switch indicates | 32 // When running certain tests that spawn child processes, this switch indicates |
(...skipping 14 matching lines...) Expand all Loading... |
42 // "*/foo/bar/*=2" would change the logging level for all code in | 47 // "*/foo/bar/*=2" would change the logging level for all code in |
43 // source files under a "foo/bar" directory. | 48 // source files under a "foo/bar" directory. |
44 const char kVModule[] = "vmodule"; | 49 const char kVModule[] = "vmodule"; |
45 | 50 |
46 // Will wait for 60 seconds for a debugger to come to attach to the process. | 51 // Will wait for 60 seconds for a debugger to come to attach to the process. |
47 const char kWaitForDebugger[] = "wait-for-debugger"; | 52 const char kWaitForDebugger[] = "wait-for-debugger"; |
48 | 53 |
49 // Sends a pretty-printed version of tracing info to the console. | 54 // Sends a pretty-printed version of tracing info to the console. |
50 const char kTraceToConsole[] = "trace-to-console"; | 55 const char kTraceToConsole[] = "trace-to-console"; |
51 | 56 |
52 #if defined(OS_POSIX) | |
53 // A flag, generated internally for renderer and other helper process command | |
54 // lines on Linux and Mac. It tells the helper process to enable crash dumping | |
55 // and reporting, because helpers cannot access the files needed to make this | |
56 // decision. | |
57 const char kEnableCrashReporter[] = "enable-crash-reporter"; | |
58 #endif | |
59 | |
60 } // namespace switches | 57 } // namespace switches |
OLD | NEW |