From cd8ceec62e5c127fd378ba97da2d41031923b18d Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Sat, 30 May 2015 08:47:52 +0800 Subject: [PATCH] Send all crash reports to collection server. Crashpad client only send reports once per hour. It's different with breakpad. With this behavior, the other reports generated within an hour will be totally skipped, which causes the crash api test only run once with an hour. This patch unrestricts this time limit. --- atom/common/crash_reporter/crash_reporter_mac.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/common/crash_reporter/crash_reporter_mac.mm b/atom/common/crash_reporter/crash_reporter_mac.mm index 0790d45d41..0e6635cafb 100644 --- a/atom/common/crash_reporter/crash_reporter_mac.mm +++ b/atom/common/crash_reporter/crash_reporter_mac.mm @@ -64,10 +64,12 @@ void CrashReporterMac::InitBreakpad(const std::string& product_name, framework_bundle_path.Append("Resources").Append("crashpad_handler"); crashpad::CrashpadClient crashpad_client; + // Send all crash reports. + std::vector arguments = { "--upload-internal=0" }; if (crashpad_client.StartHandler(handler_path, database_path, submit_url, StringMap(), - std::vector())) { + arguments)) { crashpad_client.UseHandler(); } } // @autoreleasepool