diff options
Diffstat (limited to 'components/crash/app/crashpad_mac.mm')
-rw-r--r-- | components/crash/app/crashpad_mac.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/crash/app/crashpad_mac.mm b/components/crash/app/crashpad_mac.mm index 5a3eed8..962cce6 100644 --- a/components/crash/app/crashpad_mac.mm +++ b/components/crash/app/crashpad_mac.mm @@ -158,6 +158,10 @@ void InitializeCrashpad(const std::string& process_type) { g_simple_string_dictionary = new crashpad::SimpleStringDictionary(); crashpad_info->set_simple_annotations(g_simple_string_dictionary); + + base::debug::SetCrashKeyReportingFunctions(SetCrashKeyValue, ClearCrashKey); + crash_reporter_client->RegisterCrashKeys(); + SetCrashKeyValue("ptype", browser_process ? base::StringPiece("browser") : base::StringPiece(process_type)); SetCrashKeyValue("pid", base::StringPrintf("%d", getpid())); @@ -171,9 +175,6 @@ void InitializeCrashpad(const std::string& process_type) { // the same file and line. base::debug::SetDumpWithoutCrashingFunction(DumpWithoutCrashing); - base::debug::SetCrashKeyReportingFunctions(SetCrashKeyValue, ClearCrashKey); - crash_reporter_client->RegisterCrashKeys(); - if (browser_process) { g_database = crashpad::CrashReportDatabase::Initialize(database_path).release(); |