Clear crash keys in InitBreakpad
This commit is contained in:
parent
ba975d552a
commit
9a434af03e
2 changed files with 7 additions and 5 deletions
|
@ -64,13 +64,15 @@ void CrashReporterLinux::InitBreakpad(const std::string& product_name,
|
|||
bool skip_system_crash_handler) {
|
||||
EnableCrashDumping(crashes_dir);
|
||||
|
||||
crash_keys_.SetKeyValue("prod", ATOM_PRODUCT_NAME);
|
||||
crash_keys_.SetKeyValue("ver", version.c_str());
|
||||
crash_keys_.reset(new CrashKeyStorage());
|
||||
|
||||
crash_keys_->SetKeyValue("prod", ATOM_PRODUCT_NAME);
|
||||
crash_keys_->SetKeyValue("ver", version.c_str());
|
||||
upload_url_ = submit_url;
|
||||
|
||||
for (StringMap::const_iterator iter = upload_parameters_.begin();
|
||||
iter != upload_parameters_.end(); ++iter)
|
||||
crash_keys_.SetKeyValue(iter->first.c_str(), iter->second.c_str());
|
||||
crash_keys_->SetKeyValue(iter->first.c_str(), iter->second.c_str());
|
||||
}
|
||||
|
||||
void CrashReporterLinux::SetUploadParameters() {
|
||||
|
@ -120,7 +122,7 @@ bool CrashReporterLinux::CrashDone(const MinidumpDescriptor& minidump,
|
|||
info.oom_size = base::g_oom_size;
|
||||
info.pid = self->pid_;
|
||||
info.upload_url = self->upload_url_.c_str();
|
||||
info.crash_keys = &self->crash_keys_;
|
||||
info.crash_keys = self->crash_keys_.get();
|
||||
HandleCrashDump(info);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ class CrashReporterLinux : public CrashReporter {
|
|||
const bool succeeded);
|
||||
|
||||
std::unique_ptr<google_breakpad::ExceptionHandler> breakpad_;
|
||||
CrashKeyStorage crash_keys_;
|
||||
std::unique_ptr<CrashKeyStorage> crash_keys_;
|
||||
|
||||
uint64_t process_start_time_;
|
||||
pid_t pid_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue