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 // Disables the crash reporting. | 9 // Disables the crash reporting. |
10 const char kDisableBreakpad[] = "disable-breakpad"; | 10 const char kDisableBreakpad[] = "disable-breakpad"; |
11 | 11 |
12 // Indicates that crash reporting should be enabled. On platforms where helper | 12 // Indicates that crash reporting should be enabled. On platforms where helper |
13 // processes cannot access to files needed to make this decision, this flag is | 13 // processes cannot access to files needed to make this decision, this flag is |
14 // generated internally. | 14 // generated internally. |
15 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 15 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
16 | 16 |
17 // Generates full memory crash dump. | 17 // Generates full memory crash dump. |
18 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; | 18 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
19 | 19 |
| 20 // Force low-end device when set to 1; |
| 21 // Auto-detect low-end device when set to 2; |
| 22 // Force non-low-end device when set to other values or empty; |
| 23 const char kLowEndDeviceMode[] = "low-end-device-mode"; |
| 24 |
20 // Suppresses all error dialogs when present. | 25 // Suppresses all error dialogs when present. |
21 const char kNoErrorDialogs[] = "noerrdialogs"; | 26 const char kNoErrorDialogs[] = "noerrdialogs"; |
22 | 27 |
23 // When running certain tests that spawn child processes, this switch indicates | 28 // When running certain tests that spawn child processes, this switch indicates |
24 // to the test framework that the current process is a child process. | 29 // to the test framework that the current process is a child process. |
25 const char kTestChildProcess[] = "test-child-process"; | 30 const char kTestChildProcess[] = "test-child-process"; |
26 | 31 |
27 // Gives the default maximal active V-logging level; 0 is the default. | 32 // Gives the default maximal active V-logging level; 0 is the default. |
28 // Normally positive values are used for V-logging levels. | 33 // Normally positive values are used for V-logging levels. |
29 const char kV[] = "v"; | 34 const char kV[] = "v"; |
(...skipping 23 matching lines...) Expand all Loading... |
53 // chrome://profiler. | 58 // chrome://profiler. |
54 const char kProfilerTimingDisabledValue[] = "0"; | 59 const char kProfilerTimingDisabledValue[] = "0"; |
55 | 60 |
56 #if defined(OS_POSIX) | 61 #if defined(OS_POSIX) |
57 // Used for turning on Breakpad crash reporting in a debug environment where | 62 // Used for turning on Breakpad crash reporting in a debug environment where |
58 // crash reporting is typically compiled but disabled. | 63 // crash reporting is typically compiled but disabled. |
59 const char kEnableCrashReporterForTesting[] = | 64 const char kEnableCrashReporterForTesting[] = |
60 "enable-crash-reporter-for-testing"; | 65 "enable-crash-reporter-for-testing"; |
61 #endif | 66 #endif |
62 | 67 |
63 #if defined(OS_ANDROID) | |
64 // Overrides low-end device detection, disabling low-end device optimizations. | |
65 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; | |
66 | |
67 // Overrides low-end device detection, enabling low-end device optimizations. | |
68 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; | |
69 #endif | |
70 | |
71 } // namespace switches | 68 } // namespace switches |
OLD | NEW |