mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update crashpad to 35da3b6
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "atom/common/crash_reporter/crash_reporter_mac.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/mac/bundle_locations.h"
|
||||
@@ -73,7 +75,7 @@ void CrashReporterMac::InitBreakpad(const std::string& product_name,
|
||||
SetCrashKeyValue(upload_parameter.first, upload_parameter.second);
|
||||
}
|
||||
if (is_browser_) {
|
||||
scoped_ptr<crashpad::CrashReportDatabase> database =
|
||||
std::unique_ptr<crashpad::CrashReportDatabase> database =
|
||||
crashpad::CrashReportDatabase::Initialize(database_path);
|
||||
if (database) {
|
||||
database->GetSettings()->SetUploadsEnabled(auto_submit);
|
||||
@@ -99,7 +101,7 @@ CrashReporterMac::GetUploadedReports(const std::string& path) {
|
||||
return uploaded_reports;
|
||||
}
|
||||
// Load crashpad database.
|
||||
scoped_ptr<crashpad::CrashReportDatabase> database =
|
||||
std::unique_ptr<crashpad::CrashReportDatabase> database =
|
||||
crashpad::CrashReportDatabase::Initialize(file_path);
|
||||
DCHECK(database);
|
||||
|
||||
|
||||
2
vendor/crashpad
vendored
2
vendor/crashpad
vendored
Submodule vendor/crashpad updated: e2073935d7...51f78aefa8
Reference in New Issue
Block a user