Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Issue 2693943004: headless: Add support for minidump generation on Linux (Closed)

Created:
3 years, 10 months ago by Sami
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Formatting #

Total comments: 4

Patch Set 3 : Review comments #

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

Messages

Total messages: 25 (17 generated)
Sami
PTAL.
3 years, 10 months ago (2017-02-14 13:30:43 UTC) #5
alex clarke (OOO till 29th)
https://codereview.chromium.org/2693943004/diff/20001/headless/lib/browser/headless_content_browser_client.cc File headless/lib/browser/headless_content_browser_client.cc (right): https://codereview.chromium.org/2693943004/diff/20001/headless/lib/browser/headless_content_browser_client.cc#newcode176 headless/lib/browser/headless_content_browser_client.cc:176: #if defined(OS_POSIX) && !defined(OS_MACOSX) Does the crash pad code ...
3 years, 10 months ago (2017-02-14 15:14:08 UTC) #8
Eric Seckler
lgtm with Alex' nits :)
3 years, 10 months ago (2017-02-14 18:05:06 UTC) #9
Sami
Thanks! Jochen, could you stamp the new dep on components/crash/content/{app,browser}? Other input is welcome too ...
3 years, 10 months ago (2017-02-14 18:36:47 UTC) #13
jochen (gone - plz use gerrit)
lgtm I see you have a test \o/
3 years, 10 months ago (2017-02-15 09:47:38 UTC) #18
Sami
On 2017/02/15 09:47:38, jochen wrote: > lgtm > > I see you have a test ...
3 years, 10 months ago (2017-02-15 10:31:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2693943004/80001
3 years, 10 months ago (2017-02-15 10:32:30 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 10:38:02 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c3c9701cc44e6cb38e78c8e1d9d2...

Powered by Google App Engine
This is Rietveld 408576698