mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-10 06:36:02 +00:00
[fuchsia] early return in handler on disable
Tested:CQ Change-Id: Ifd742a7bfb213e4286bad582c81963e2fb383551 Reviewed-on: https://chromium-review.googlesource.com/c/1309156 Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: Francois Rousseau <frousseau@google.com>
This commit is contained in:
parent
5dd094381c
commit
96391cb80f
@ -109,7 +109,10 @@ bool CrashReportExceptionHandler::HandleExceptionHandles(
|
|||||||
CrashpadInfoClientOptions client_options;
|
CrashpadInfoClientOptions client_options;
|
||||||
process_snapshot.GetCrashpadOptions(&client_options);
|
process_snapshot.GetCrashpadOptions(&client_options);
|
||||||
|
|
||||||
if (client_options.crashpad_handler_behavior != TriState::kDisabled) {
|
if (client_options.crashpad_handler_behavior == TriState::kDisabled) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
zx_exception_report_t report;
|
zx_exception_report_t report;
|
||||||
zx_status_t status = thread.get_info(ZX_INFO_THREAD_EXCEPTION_REPORT,
|
zx_status_t status = thread.get_info(ZX_INFO_THREAD_EXCEPTION_REPORT,
|
||||||
&report,
|
&report,
|
||||||
@ -188,7 +191,6 @@ bool CrashReportExceptionHandler::HandleExceptionHandles(
|
|||||||
if (upload_thread_) {
|
if (upload_thread_) {
|
||||||
upload_thread_->ReportPending(uuid);
|
upload_thread_->ReportPending(uuid);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user