|
headless: Add support for minidump generation on Linux
This patch adds support for minidump generation in headless mode. This
is controlled by two new browser settings:
- SetCrashReporterEnabled: Turns crash reporter on or off. Off by
default.
- SetCrashDumpsDir: Controls where crash dumps are written. Uses the
directory of the executable by default.
Headless Shell is also modified to accept the equivalent command line
flags: --enable-crash-reporter and --crash-dumps-dir. Note that we don't
enable crash dumps automatically because we currently can't determine
whether the user has opted into metrics reporting.
In official builds, the generated minidumps are also uploaded
automatically. This can be disabled either with --disable-breakpad or by
setting the CHROME_HEADLESS environment variable to indicate an
unattended testing mode (as with regular Chrome).
Design doc:
https://docs.google.com/document/d/1l6AGOOBLk99PaAKoZQW_DVhM8FQ6Fut27lD938CRbTM/edit#
BUG= 691507
Review-Url: https://codereview.chromium.org/2693943004
Cr-Commit-Position: refs/heads/master@{#450655}
Committed: https://chromium.googlesource.com/chromium/src/+/c3c9701cc44e6cb38e78c8e1d9d2bca5a74726a4
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+392 lines, -4 lines) |
Patch |
|
M |
headless/BUILD.gn
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/DEPS
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/app/headless_shell.cc
|
View
|
1
2
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/app/headless_shell_switches.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
headless/app/headless_shell_switches.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_content_browser_client.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_content_browser_client.cc
|
View
|
1
2
|
2 chunks |
+92 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/embedder_mojo_browsertest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
headless/lib/headless_browser_browsertest.cc
|
View
|
1
2
|
2 chunks |
+88 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/headless_content_main_delegate.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/headless_content_main_delegate.cc
|
View
|
1
2
|
4 chunks |
+40 lines, -2 lines |
0 comments
|
Download
|
|
A |
headless/lib/headless_crash_reporter_client.h
|
View
|
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
|
A |
headless/lib/headless_crash_reporter_client.cc
|
View
|
1
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
|
A |
headless/lib/headless_macros.h
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/public/headless_browser.h
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/public/headless_browser.cc
|
View
|
|
2 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
Total messages: 25 (17 generated)
|