[WebLayer] Handle child crashes when there is no crash reporter client
WebLayer's CrashReporterControllerImpl is is always initialized as part of WebLayer initialization. Currently, CrashReporterControllerImpl registers to observe child process crashes and process their minidumps in its own initialization. This processing involves interaction with the CrashReporterControllerClient. However, not all WebLayer embedders set a client; e.g., WebLayer Shell does not. Without a client having been set, a child process crash causes the app to crash due to CrashReporterControllerImpl accessing a null client instance. This CL changes CrashReporterControllerImpl to register for child process crashes when its client is set. Change-Id: I280b68766cc3c5e59ca02fa685575cfe67715f3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980741Reviewed-by:Tobias Sargeant <tobiasjs@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#727539}
Showing
Please register or sign in to comment