summaryrefslogtreecommitdiffstats
path: root/base/base_switches.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 08:35:29 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 08:35:29 +0000
commit6664958acde27d18518aeafa1e8fe7cafe289f81 (patch)
tree6faf0242eb85f19d26de2e0d78f24cb5ebbcb85a /base/base_switches.cc
parent2da86252173ef56798a5a2b910ceb245d5bdad99 (diff)
downloadchromium_src-6664958acde27d18518aeafa1e8fe7cafe289f81.zip
chromium_src-6664958acde27d18518aeafa1e8fe7cafe289f81.tar.gz
chromium_src-6664958acde27d18518aeafa1e8fe7cafe289f81.tar.bz2
Move init of breakpad in the browser process as early as possible
On Linux and Android, we delayed initialization until the browser process was already up. That way, certain crash keys did not get registered correctly. Instead, use a similar logic than on mac and windows to determine whether we can run breakpad. In particular, this relies on the fact that the GetCollectStatsConsent() setting reflects the policy enforced value. R=mark@chromium.org, pastarmovj@chromium.org, rsesek@chromium.org BUG=311877 Review URL: https://codereview.chromium.org/61923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_switches.cc')
-rw-r--r--base/base_switches.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/base_switches.cc b/base/base_switches.cc
index d6b7d02..c6dce9b 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -54,4 +54,11 @@ 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)
+// Used for turning on Breakpad crash reporting in a debug environment where
+// crash reporting is typically compiled but disabled.
+const char kEnableCrashReporterForTesting[] =
+ "enable-crash-reporter-for-testing";
+#endif
+
} // namespace switches