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 // Overrides low-end device detection, disabling low-end device optimizations. | |
13 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; | |
14 | |
12 // Indicates that crash reporting should be enabled. On platforms where helper | 15 // 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 | 16 // processes cannot access to files needed to make this decision, this flag is |
14 // generated internally. | 17 // generated internally. |
15 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 18 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
16 | 19 |
20 // Overrides low-end device detection, enabling low-end device optimizations. | |
21 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; | |
brettw
2014/06/11 21:02:40
Can you align the = on this one and the next one y
c.shu
2014/06/12 21:12:48
Done.
| |
22 | |
17 // Generates full memory crash dump. | 23 // Generates full memory crash dump. |
18 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; | 24 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
19 | 25 |
20 // Suppresses all error dialogs when present. | 26 // Suppresses all error dialogs when present. |
21 const char kNoErrorDialogs[] = "noerrdialogs"; | 27 const char kNoErrorDialogs[] = "noerrdialogs"; |
22 | 28 |
23 // When running certain tests that spawn child processes, this switch indicates | 29 // When running certain tests that spawn child processes, this switch indicates |
24 // to the test framework that the current process is a child process. | 30 // to the test framework that the current process is a child process. |
25 const char kTestChildProcess[] = "test-child-process"; | 31 const char kTestChildProcess[] = "test-child-process"; |
26 | 32 |
(...skipping 26 matching lines...) Expand all Loading... | |
53 // chrome://profiler. | 59 // chrome://profiler. |
54 const char kProfilerTimingDisabledValue[] = "0"; | 60 const char kProfilerTimingDisabledValue[] = "0"; |
55 | 61 |
56 #if defined(OS_POSIX) | 62 #if defined(OS_POSIX) |
57 // Used for turning on Breakpad crash reporting in a debug environment where | 63 // Used for turning on Breakpad crash reporting in a debug environment where |
58 // crash reporting is typically compiled but disabled. | 64 // crash reporting is typically compiled but disabled. |
59 const char kEnableCrashReporterForTesting[] = | 65 const char kEnableCrashReporterForTesting[] = |
60 "enable-crash-reporter-for-testing"; | 66 "enable-crash-reporter-for-testing"; |
61 #endif | 67 #endif |
62 | 68 |
63 #if defined(OS_ANDROID) | 69 #if !defined(OS_ANDROID) |
64 // Overrides low-end device detection, disabling low-end device optimizations. | 70 // Indicates whether to detect low-end device. |
65 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; | 71 const char kDetectLowEndDevice[] = "detect-low-end-device"; |
brettw
2014/06/11 21:02:40
I'm not super excited about having 3 arguments to
c.shu
2014/06/12 21:18:11
I agree, brettw. I have a concern though the enabl
| |
66 | |
67 // Overrides low-end device detection, enabling low-end device optimizations. | |
68 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; | |
69 #endif | 72 #endif |
70 | 73 |
71 } // namespace switches | 74 } // namespace switches |
OLD | NEW |