diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
commit | 679147eead574d186ebf3069647b4c23e8ccace6 (patch) | |
tree | fc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/base/base_switches.cc | |
download | qtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz |
Initial import.
Diffstat (limited to 'chromium/base/base_switches.cc')
-rw-r--r-- | chromium/base/base_switches.cc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/chromium/base/base_switches.cc b/chromium/base/base_switches.cc new file mode 100644 index 00000000000..bdd7b62d475 --- /dev/null +++ b/chromium/base/base_switches.cc @@ -0,0 +1,60 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/base_switches.h" + +namespace switches { + +// If the program includes base/debug/debug_on_start_win.h, the process will +// (on Windows only) start the JIT system-registered debugger on itself and +// will wait for 60 seconds for the debugger to attach to itself. Then a break +// point will be hit. +const char kDebugOnStart[] = "debug-on-start"; + +// Disables the crash reporting. +const char kDisableBreakpad[] = "disable-breakpad"; + +// Enable DCHECKs in release mode. +const char kEnableDCHECK[] = "enable-dcheck"; + +// Generates full memory crash dump. +const char kFullMemoryCrashReport[] = "full-memory-crash-report"; + +// Suppresses all error dialogs when present. +const char kNoErrorDialogs[] = "noerrdialogs"; + +// When running certain tests that spawn child processes, this switch indicates +// to the test framework that the current process is a child process. +const char kTestChildProcess[] = "test-child-process"; + +// Gives the default maximal active V-logging level; 0 is the default. +// Normally positive values are used for V-logging levels. +const char kV[] = "v"; + +// Gives the per-module maximal V-logging levels to override the value +// given by --v. E.g. "my_module=2,foo*=3" would change the logging +// level for all code in source files "my_module.*" and "foo*.*" +// ("-inl" suffixes are also disregarded for this matching). +// +// Any pattern containing a forward or backward slash will be tested +// against the whole pathname and not just the module. E.g., +// "*/foo/bar/*=2" would change the logging level for all code in +// source files under a "foo/bar" directory. +const char kVModule[] = "vmodule"; + +// Will wait for 60 seconds for a debugger to come to attach to the process. +const char kWaitForDebugger[] = "wait-for-debugger"; + +// Sends a pretty-printed version of tracing info to the console. +const char kTraceToConsole[] = "trace-to-console"; + +#if defined(OS_POSIX) +// A flag, generated internally for renderer and other helper process command +// lines on Linux and Mac. It tells the helper process to enable crash dumping +// and reporting, because helpers cannot access the files needed to make this +// decision. +const char kEnableCrashReporter[] = "enable-crash-reporter"; +#endif + +} // namespace switches |