tfarina@chromium.org | ef21d1d | 2012-03-13 00:35:12 +0900 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | f003cfe | 2008-08-24 09:55:55 +0900 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 4 | |
| 5 | #include "base/base_switches.h" |
| 6 | |
| 7 | namespace switches { |
| 8 | |
nsylvain@chromium.org | 12ec1e8 | 2010-08-10 02:32:32 +0900 | [diff] [blame] | 9 | // Disables the crash reporting. |
| 10 | const char kDisableBreakpad[] = "disable-breakpad"; |
| 11 | |
jochen@chromium.org | 22bb79e | 2013-10-23 06:19:01 +0900 | [diff] [blame] | 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 |
| 14 | // generated internally. |
| 15 | const char kEnableCrashReporter[] = "enable-crash-reporter"; |
| 16 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 17 | // Generates full memory crash dump. |
| 18 | const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
| 19 | |
c.shu@samsung.com | da21aff | 2014-06-27 01:55:27 +0900 | [diff] [blame] | 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 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 25 | // Suppresses all error dialogs when present. |
| 26 | const char kNoErrorDialogs[] = "noerrdialogs"; |
| 27 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 28 | // When running certain tests that spawn child processes, this switch indicates |
| 29 | // to the test framework that the current process is a child process. |
| 30 | const char kTestChildProcess[] = "test-child-process"; |
| 31 | |
akalin@chromium.org | f0ee79c | 2010-09-30 04:26:36 +0900 | [diff] [blame] | 32 | // Gives the default maximal active V-logging level; 0 is the default. |
| 33 | // Normally positive values are used for V-logging levels. |
| 34 | const char kV[] = "v"; |
| 35 | |
| 36 | // Gives the per-module maximal V-logging levels to override the value |
| 37 | // given by --v. E.g. "my_module=2,foo*=3" would change the logging |
| 38 | // level for all code in source files "my_module.*" and "foo*.*" |
| 39 | // ("-inl" suffixes are also disregarded for this matching). |
akalin@chromium.org | 859d7d4 | 2010-10-29 09:39:48 +0900 | [diff] [blame] | 40 | // |
| 41 | // Any pattern containing a forward or backward slash will be tested |
| 42 | // against the whole pathname and not just the module. E.g., |
| 43 | // "*/foo/bar/*=2" would change the logging level for all code in |
| 44 | // source files under a "foo/bar" directory. |
akalin@chromium.org | f0ee79c | 2010-09-30 04:26:36 +0900 | [diff] [blame] | 45 | const char kVModule[] = "vmodule"; |
| 46 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 47 | // Will wait for 60 seconds for a debugger to come to attach to the process. |
| 48 | const char kWaitForDebugger[] = "wait-for-debugger"; |
| 49 | |
vollick@chromium.org | 4ff9adc | 2013-07-12 08:10:40 +0900 | [diff] [blame] | 50 | // Sends a pretty-printed version of tracing info to the console. |
| 51 | const char kTraceToConsole[] = "trace-to-console"; |
| 52 | |
qsr@chromium.org | 4b1cc32 | 2013-12-11 21:49:17 +0900 | [diff] [blame] | 53 | // Configure whether chrome://profiler will contain timing information. This |
| 54 | // option is enabled by default. A value of "0" will disable profiler timing, |
| 55 | // while all other values will enable it. |
| 56 | const char kProfilerTiming[] = "profiler-timing"; |
| 57 | // Value of the --profiler-timing flag that will disable timing information for |
| 58 | // chrome://profiler. |
| 59 | const char kProfilerTimingDisabledValue[] = "0"; |
| 60 | |
jochen@chromium.org | c108733 | 2013-11-07 17:35:29 +0900 | [diff] [blame] | 61 | #if defined(OS_POSIX) |
| 62 | // Used for turning on Breakpad crash reporting in a debug environment where |
| 63 | // crash reporting is typically compiled but disabled. |
| 64 | const char kEnableCrashReporterForTesting[] = |
| 65 | "enable-crash-reporter-for-testing"; |
| 66 | #endif |
| 67 | |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 68 | } // namespace switches |