[fuchsia] Feedback filing migration (flutter/engine#40736)

[fuchsia] Feedback filing migration
This commit is contained in:
Thomas Gales
2023-03-30 13:09:50 -07:00
committed by GitHub
parent 8fe44e180e
commit 7f5afc5533

View File

@@ -114,12 +114,12 @@ void HandleException(std::shared_ptr<::sys::ServiceDirectory> services,
fuchsia::feedback::CrashReporterPtr crash_reporter =
services->Connect<fuchsia::feedback::CrashReporter>();
crash_reporter->File(
crash_reporter->FileReport(
std::move(crash_report),
[](fuchsia::feedback::CrashReporter_File_Result result) {
[](fuchsia::feedback::CrashReporter_FileReport_Result result) {
if (result.is_err()) {
FX_LOGF(ERROR, LOG_TAG, "Failed to report Dart exception: %d (%s)",
result.err(), zx_status_get_string(result.err()));
FX_LOGF(ERROR, LOG_TAG, "Failed to report Dart exception: %u",
static_cast<uint32_t>(result.err()));
}
});
}