Crashpad
|
A scoper to cleanly handle the interface requirement imposed by PrepareNewCrashReport(). More...
#include "client/crash_report_database.h"
Public Member Functions | |
CallErrorWritingCrashReport (CrashReportDatabase *database, NewReport *new_report) | |
Arms the object to call ErrorWritingCrashReport() on database with an argument of new_report on destruction. | |
~CallErrorWritingCrashReport () | |
Calls ErrorWritingCrashReport() if the object is armed. | |
void | Disarm () |
Disarms the object so that CallErrorWritingCrashReport() will not be called upon destruction. | |
A scoper to cleanly handle the interface requirement imposed by PrepareNewCrashReport().
Calls ErrorWritingCrashReport() upon destruction unless disarmed by calling Disarm(). Armed upon construction.