Index: client/crashpad_client_mac.cc |
diff --git a/client/crashpad_client_mac.cc b/client/crashpad_client_mac.cc |
index e7ad064269f94acbd9fccf1bb1fd92005e12e32c..a180fd193e40a8384751a61a1ecda19ca8d2906f 100644 |
--- a/client/crashpad_client_mac.cc |
+++ b/client/crashpad_client_mac.cc |
@@ -221,13 +221,15 @@ bool CrashpadClient::UseHandler() { |
} |
// static |
-bool CrashpadClient::UseSystemDefaultHandler() { |
+void CrashpadClient::UseSystemDefaultHandler() { |
base::mac::ScopedMachSendRight |
system_crash_reporter_handler(SystemCrashReporterHandler()); |
// Proceed even if SystemCrashReporterHandler() failed, setting MACH_PORT_NULL |
// to clear the current exception ports. |
- return SetCrashExceptionPorts(system_crash_reporter_handler); |
+ if (!SetCrashExceptionPorts(system_crash_reporter_handler)) { |
+ SetCrashExceptionPorts(MACH_PORT_NULL); |
+ } |
} |
} // namespace crashpad |