| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/base_switches.h" | |
| 6 | |
| 7 namespace switches { | |
| 8 | |
| 9 // Disables the crash reporting. | |
| 10 const char kDisableBreakpad[] = "disable-breakpad"; | |
| 11 | |
| 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 | |
| 17 // Generates full memory crash dump. | |
| 18 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; | |
| 19 | |
| 20 // Force low-end device mode when set. | |
| 21 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; | |
| 22 | |
| 23 // Force disabling of low-end device mode when set. | |
| 24 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; | |
| 25 | |
| 26 // Suppresses all error dialogs when present. | |
| 27 const char kNoErrorDialogs[] = "noerrdialogs"; | |
| 28 | |
| 29 // When running certain tests that spawn child processes, this switch indicates | |
| 30 // to the test framework that the current process is a child process. | |
| 31 const char kTestChildProcess[] = "test-child-process"; | |
| 32 | |
| 33 // Gives the default maximal active V-logging level; 0 is the default. | |
| 34 // Normally positive values are used for V-logging levels. | |
| 35 const char kV[] = "v"; | |
| 36 | |
| 37 // Gives the per-module maximal V-logging levels to override the value | |
| 38 // given by --v. E.g. "my_module=2,foo*=3" would change the logging | |
| 39 // level for all code in source files "my_module.*" and "foo*.*" | |
| 40 // ("-inl" suffixes are also disregarded for this matching). | |
| 41 // | |
| 42 // Any pattern containing a forward or backward slash will be tested | |
| 43 // against the whole pathname and not just the module. E.g., | |
| 44 // "*/foo/bar/*=2" would change the logging level for all code in | |
| 45 // source files under a "foo/bar" directory. | |
| 46 const char kVModule[] = "vmodule"; | |
| 47 | |
| 48 // Will wait for 60 seconds for a debugger to come to attach to the process. | |
| 49 const char kWaitForDebugger[] = "wait-for-debugger"; | |
| 50 | |
| 51 // Sends a pretty-printed version of tracing info to the console. | |
| 52 const char kTraceToConsole[] = "trace-to-console"; | |
| 53 | |
| 54 // Sends trace events from these categories to a file. | |
| 55 // --trace-to-file on its own sends to default categories. | |
| 56 const char kTraceToFile[] = "trace-to-file"; | |
| 57 | |
| 58 // Specifies the file name for --trace-to-file. If unspecified, it will | |
| 59 // go to a default file name. | |
| 60 const char kTraceToFileName[] = "trace-to-file-name"; | |
| 61 | |
| 62 // Configure whether chrome://profiler will contain timing information. This | |
| 63 // option is enabled by default. A value of "0" will disable profiler timing, | |
| 64 // while all other values will enable it. | |
| 65 const char kProfilerTiming[] = "profiler-timing"; | |
| 66 // Value of the --profiler-timing flag that will disable timing information for | |
| 67 // chrome://profiler. | |
| 68 const char kProfilerTimingDisabledValue[] = "0"; | |
| 69 | |
| 70 #if defined(OS_WIN) | |
| 71 // Disables the USB keyboard detection for blocking the OSK on Win8+. | |
| 72 const char kDisableUsbKeyboardDetect[] = "disable-usb-keyboard-detect"; | |
| 73 #endif | |
| 74 | |
| 75 #if defined(OS_POSIX) | |
| 76 // Used for turning on Breakpad crash reporting in a debug environment where | |
| 77 // crash reporting is typically compiled but disabled. | |
| 78 const char kEnableCrashReporterForTesting[] = | |
| 79 "enable-crash-reporter-for-testing"; | |
| 80 #endif | |
| 81 | |
| 82 } // namespace switches | |
| OLD | NEW |