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.
This commit is contained in:
Haojian Wu 2015-05-30 08:47:52 +08:00
parent 98a9d8a9e3
commit cd8ceec62e

View file

@ -64,10 +64,12 @@ void CrashReporterMac::InitBreakpad(const std::string& product_name,
framework_bundle_path.Append("Resources").Append("crashpad_handler"); framework_bundle_path.Append("Resources").Append("crashpad_handler");
crashpad::CrashpadClient crashpad_client; crashpad::CrashpadClient crashpad_client;
// Send all crash reports.
std::vector<std::string> arguments = { "--upload-internal=0" };
if (crashpad_client.StartHandler(handler_path, database_path, if (crashpad_client.StartHandler(handler_path, database_path,
submit_url, submit_url,
StringMap(), StringMap(),
std::vector<std::string>())) { arguments)) {
crashpad_client.UseHandler(); crashpad_client.UseHandler();
} }
} // @autoreleasepool } // @autoreleasepool