Revert of Componentize SigninManager. (https://codereview.chromium.org/218713002/)
[chromium-blink-merge.git] / base / base_switches.cc
blobabcdc201d568361625049c5e64d8420edad71bd9
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.
5 #include "base/base_switches.h"
7 namespace switches {
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
11 // will wait for 60 seconds for the debugger to attach to itself. Then a break
12 // point will be hit.
13 const char kDebugOnStart[] = "debug-on-start";
15 // Disables the crash reporting.
16 const char kDisableBreakpad[] = "disable-breakpad";
18 // 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
20 // generated internally.
21 const char kEnableCrashReporter[] = "enable-crash-reporter";
23 // Generates full memory crash dump.
24 const char kFullMemoryCrashReport[] = "full-memory-crash-report";
26 // Suppresses all error dialogs when present.
27 const char kNoErrorDialogs[] = "noerrdialogs";
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";
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";
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).
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";
48 // Will wait for 60 seconds for a debugger to come to attach to the process.
49 const char kWaitForDebugger[] = "wait-for-debugger";
51 // Sends a pretty-printed version of tracing info to the console.
52 const char kTraceToConsole[] = "trace-to-console";
54 // Configure whether chrome://profiler will contain timing information. This
55 // option is enabled by default. A value of "0" will disable profiler timing,
56 // while all other values will enable it.
57 const char kProfilerTiming[] = "profiler-timing";
58 // Value of the --profiler-timing flag that will disable timing information for
59 // chrome://profiler.
60 const char kProfilerTimingDisabledValue[] = "0";
62 #if defined(OS_POSIX)
63 // Used for turning on Breakpad crash reporting in a debug environment where
64 // crash reporting is typically compiled but disabled.
65 const char kEnableCrashReporterForTesting[] =
66 "enable-crash-reporter-for-testing";
67 #endif
69 #if defined(OS_ANDROID)
70 // Overrides low-end device detection, disabling low-end device optimizations.
71 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
73 // Overrides low-end device detection, enabling low-end device optimizations.
74 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
75 #endif
77 } // namespace switches