]> khamidou — GitHub mirrors - electron.git/commitdiff
Send all crash reports to collection server.
authorHaojian Wu <hokein.wu@gmail.com>
Sat, 30 May 2015 00:47:52 +0000 (08:47 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Sat, 30 May 2015 00:47:52 +0000 (08:47 +0800)
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

index 0790d45d411a561fc884a4912f73faefafc9e5ed..0e6635cafbbc5a10598a0eca0ad0d3cb9b1ce944 100644 (file)
@@ -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<std::string> arguments = { "--upload-internal=0" };
       if (crashpad_client.StartHandler(handler_path, database_path,
                                        submit_url,
                                        StringMap(),
-                                       std::vector<std::string>())) {
+                                       arguments)) {
         crashpad_client.UseHandler();
       }
     }  // @autoreleasepool