commit | 1bb6e15c873eafb5afe9d8438fb143b972c17a81 | [log] [tgz] |
---|---|---|
author | Joshua Peraza <jperaza@chromium.org> | Wed Apr 25 20:21:12 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 25 20:21:12 2018 |
tree | e6b6f1a83426913bf1e324e0e85b0bf82804571a | |
parent | 14c5d49cfb5674793fe0d5223cc4cf257732a8ff [diff] |
Add an observer interface to CrashHandlerHost This interface allows interested classes, including AwBrowserTerminator, ChromeStabilityMetricsProvider, OutOfMemoryReporter, and DataReductionProxyPingbackClientImpl to distinguish between child process crashes and kills on Android. Previously, this was done by either passing a file descriptor to the child process (AwBrowserTerminator) or by observing whether a crash dump was successfully produced. This eliminates the need for the extra descriptor for AwBrowserTerminator, as well as providing a more accurate signal for classes that relied on checking for a crash dump. Observers can use this interface in combination with observing child process exits/disconnects. If an observer sees a child process disconnect without having observed a crash signal for the child, it can deduce that the child was killed. Bug: crashpad:30 Change-Id: I6213d31f30d15b30d2a3987fe95229042371938b Reviewed-on: https://chromium-review.googlesource.com/1026085 Commit-Queue: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#553715}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .