mac: Store crash dumps under /tmp/ProductName Crashes/.

If we put them under ~/Library/ then we need to clean them, which makes
things more complicated.
This commit is contained in:
Cheng Zhao 2013-11-24 23:42:54 +08:00
Родитель 59f586ba59
Коммит b737e602b7
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,11 @@ void CrashReporterMac::InitBreakpad(const std::string& product_name,
// Report all crashes (important for testing the crash reporter).
[parameters setValue:@"0" forKey:@BREAKPAD_REPORT_INTERVAL];
// Put dump files under "/tmp/ProductName Crashes".
std::string dump_dir = "/tmp/" + product_name + " Crashes";
[parameters setValue:base::SysUTF8ToNSString(dump_dir)
forKey:@BREAKPAD_DUMP_DIRECTORY];
breakpad_ = BreakpadCreate(parameters);
for (StringMap::const_iterator iter = upload_parameters_.begin();