upstream cl/337571894 with tweaks

Seems harmless to fall back to other SetupCrashHandler() options.

Change-Id: I2e7ce5dd72f391af88a57f4bd29831122fe784b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/327893
Reviewed-by: Peter Foley <pefoley@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
Mike Klein 2020-10-16 16:20:28 -05:00 committed by Skia Commit-Bot
parent 9dfc6d8735
commit c49da0b519

View File

@ -12,6 +12,10 @@
#include <stdlib.h>
#if defined(SK_BUILD_FOR_GOOGLE3)
#include "base/config.h" // May define GOOGLE_ENABLE_SIGNAL_HANDLERS.
#endif
#if defined(GOOGLE_ENABLE_SIGNAL_HANDLERS)
#include "base/process_state.h"
void SetupCrashHandler() { InstallSignalHandlers(); }