fix: send guid with linux crashes (#24881)

This commit is contained in:
Jeremy Rose 2020-08-07 15:30:49 -07:00 committed by GitHub
parent 433956ce4f
commit 481b19bee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 74 additions and 2 deletions

View file

@ -722,8 +722,10 @@ void ElectronBrowserClient::AppendExtraCommandLineSwitches(
bool enable_crash_reporter = false;
enable_crash_reporter = breakpad::IsCrashReporterEnabled();
if (enable_crash_reporter) {
command_line->AppendSwitch(::switches::kEnableCrashReporter);
std::string switch_value;
std::string switch_value =
api::crash_reporter::GetClientId() + ",no_channel";
command_line->AppendSwitchASCII(::switches::kEnableCrashReporter,
switch_value);
for (const auto& pair : api::crash_reporter::GetGlobalCrashKeys()) {
if (!switch_value.empty())
switch_value += ",";