| 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 // Overrides low-end device detection, disabling low-end device optimizations. |
| 19 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; |
| 20 |
| 18 // Indicates that crash reporting should be enabled. On platforms where helper | 21 // 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 | 22 // processes cannot access to files needed to make this decision, this flag is |
| 20 // generated internally. | 23 // generated internally. |
| 21 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 24 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
| 22 | 25 |
| 23 // Enable DCHECKs in release mode. | 26 // Enable DCHECKs in release mode. |
| 24 const char kEnableDCHECK[] = "enable-dcheck"; | 27 const char kEnableDCHECK[] = "enable-dcheck"; |
| 25 | 28 |
| 29 // Overrides low-end device detection, enabling low-end device optimizations. |
| 30 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; |
| 31 |
| 26 // Generates full memory crash dump. | 32 // Generates full memory crash dump. |
| 27 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; | 33 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
| 28 | 34 |
| 29 // Suppresses all error dialogs when present. | 35 // Suppresses all error dialogs when present. |
| 30 const char kNoErrorDialogs[] = "noerrdialogs"; | 36 const char kNoErrorDialogs[] = "noerrdialogs"; |
| 31 | 37 |
| 32 // When running certain tests that spawn child processes, this switch indicates | 38 // When running certain tests that spawn child processes, this switch indicates |
| 33 // to the test framework that the current process is a child process. | 39 // to the test framework that the current process is a child process. |
| 34 const char kTestChildProcess[] = "test-child-process"; | 40 const char kTestChildProcess[] = "test-child-process"; |
| 35 | 41 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 62 // chrome://profiler. | 68 // chrome://profiler. |
| 63 const char kProfilerTimingDisabledValue[] = "0"; | 69 const char kProfilerTimingDisabledValue[] = "0"; |
| 64 | 70 |
| 65 #if defined(OS_POSIX) | 71 #if defined(OS_POSIX) |
| 66 // Used for turning on Breakpad crash reporting in a debug environment where | 72 // Used for turning on Breakpad crash reporting in a debug environment where |
| 67 // crash reporting is typically compiled but disabled. | 73 // crash reporting is typically compiled but disabled. |
| 68 const char kEnableCrashReporterForTesting[] = | 74 const char kEnableCrashReporterForTesting[] = |
| 69 "enable-crash-reporter-for-testing"; | 75 "enable-crash-reporter-for-testing"; |
| 70 #endif | 76 #endif |
| 71 | 77 |
| 72 #if defined(OS_ANDROID) | |
| 73 // Overrides low-end device detection, disabling low-end device optimizations. | |
| 74 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; | |
| 75 | |
| 76 // Overrides low-end device detection, enabling low-end device optimizations. | |
| 77 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; | |
| 78 #endif | |
| 79 | |
| 80 } // namespace switches | 78 } // namespace switches |
| OLD | NEW |