Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: client/crash_report_database.cc

Issue 1018853006: crashpad_database_util: add --new-report (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@crashpad_database_util
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/crash_report_database.h ('k') | handler/mac/crash_report_exception_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/crash_report_database.cc
diff --git a/client/crash_report_database.cc b/client/crash_report_database.cc
index 0a090b5c2c39b7a85e59e1c595d19daf90ba3384..b758ee563d6eb01605497eec992def962be4338c 100644
--- a/client/crash_report_database.cc
+++ b/client/crash_report_database.cc
@@ -17,8 +17,31 @@
namespace crashpad {
CrashReportDatabase::Report::Report()
- : uuid(), file_path(), id(), creation_time(0), uploaded(false),
- last_upload_attempt_time(0), upload_attempts(0) {
+ : uuid(),
+ file_path(),
+ id(),
+ creation_time(0),
+ uploaded(false),
+ last_upload_attempt_time(0),
+ upload_attempts(0) {
+}
+
+CrashReportDatabase::CallErrorWritingCrashReport::CallErrorWritingCrashReport(
+ CrashReportDatabase* database,
+ NewReport* new_report)
+ : database_(database),
+ new_report_(new_report) {
+}
+
+CrashReportDatabase::CallErrorWritingCrashReport::
+ ~CallErrorWritingCrashReport() {
+ if (new_report_) {
+ database_->ErrorWritingCrashReport(new_report_);
+ }
+}
+
+void CrashReportDatabase::CallErrorWritingCrashReport::Disarm() {
+ new_report_ = nullptr;
}
} // namespace crashpad
« no previous file with comments | « client/crash_report_database.h ('k') | handler/mac/crash_report_exception_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698