[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:
Francois Rousseau 2018-10-30 15:33:39 -07:00 committed by Commit Bot
parent 5dd094381c
commit 96391cb80f

View File

@ -109,7 +109,10 @@ bool CrashReportExceptionHandler::HandleExceptionHandles(
CrashpadInfoClientOptions 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_status_t status = thread.get_info(ZX_INFO_THREAD_EXCEPTION_REPORT,
&report,
@ -188,7 +191,6 @@ bool CrashReportExceptionHandler::HandleExceptionHandles(
if (upload_thread_) {
upload_thread_->ReportPending(uuid);
}
}
return true;
}