3#include <client/crashpad_client.h>
4#include <client/crash_report_database.h>
5#include <client/settings.h>
62 if (database ==
nullptr)
64 throw std::runtime_error(
"Crash report database error");
66 auto dbSettings = database->GetSettings();
67 if (dbSettings ==
nullptr)
69 throw std::runtime_error(
"Cannot access crash report database settings");
75 std::vector<base::FilePath> attachments;
76 std::transform(
mAttachments.begin(),
mAttachments.end(), std::back_inserter(attachments), [](
const std::string& path) {
77 return base::FilePath(makeFilePath<base::FilePath::StringType>(path));
80 crashpad::CrashpadClient client;
82 auto success = client.StartHandler(
95 throw std::runtime_error(
"Cannot start crashpad handler");