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

Unified Diff: client/crashpad_info.cc

Issue 997713002: Allow exception forwarding to the system’s native crash reporter to be disabled (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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
Index: client/crashpad_info.cc
diff --git a/client/crashpad_info.cc b/client/crashpad_info.cc
index 6d2c989b81a6cf4850eed70e5738046152ace663..86538bafd0f4320dbf576ea95f6225808005eee5 100644
--- a/client/crashpad_info.cc
+++ b/client/crashpad_info.cc
@@ -85,10 +85,20 @@ CrashpadInfo::CrashpadInfo()
: signature_(kSignature),
size_(sizeof(*this)),
version_(kCrashpadInfoVersion),
+ options_(0),
padding_0_(0),
+ padding_1_(0),
simple_annotations_(nullptr) {
}
+void CrashpadInfo::SetCrashpadHandlerState(TriState state) {
+ options_ = (options_ & ~0x3) | state;
Robert Sesek 2015/03/10 23:03:04 This is a bit magic-y, especially across crashpad
+}
+
+void CrashpadInfo::SetNativeCrashReporterForwarding(TriState state) {
+ options_ = (options_ & ~(0x3 << 2)) | (state << 2);
+}
+
const uint32_t CrashpadInfo::kSignature;
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698