Fix Linux compiler errors
This commit is contained in:
parent
773bfea386
commit
69a7025c96
1 changed files with 2 additions and 2 deletions
|
@ -79,13 +79,13 @@ void CrashReporterLinux::SetUploadParameters() {
|
||||||
|
|
||||||
void CrashReporterLinux::EnableCrashDumping(const std::string& product_name) {
|
void CrashReporterLinux::EnableCrashDumping(const std::string& product_name) {
|
||||||
base::FilePath dumps_path;
|
base::FilePath dumps_path;
|
||||||
if (!GetCrashesDirectory(&dumps_path))
|
if (!GetCrashesDirectory(product_name, &dumps_path))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
base::CreateDirectory(dumps_path);
|
base::CreateDirectory(dumps_path);
|
||||||
|
|
||||||
std::string log_file = base::StringPrintf(
|
std::string log_file = base::StringPrintf(
|
||||||
"%s/%s", dump_dir.c_str(), "uploads.log");
|
"%s/%s", dumps_path.value().c_str(), "uploads.log");
|
||||||
strncpy(g_crash_log_path, log_file.c_str(), sizeof(g_crash_log_path));
|
strncpy(g_crash_log_path, log_file.c_str(), sizeof(g_crash_log_path));
|
||||||
|
|
||||||
MinidumpDescriptor minidump_descriptor(dumps_path.value());
|
MinidumpDescriptor minidump_descriptor(dumps_path.value());
|
||||||
|
|
Loading…
Reference in a new issue