From ce6f9f20bf87641c687a951081df5b13650184b1 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 26 Feb 2014 20:59:27 +0800 Subject: [PATCH] linux: No need of |ptype| parameter. --- common/crash_reporter/crash_reporter_linux.cc | 2 -- common/crash_reporter/linux/crash_dump_handler.cc | 6 ------ common/crash_reporter/linux/crash_dump_handler.h | 2 -- 3 files changed, 10 deletions(-) diff --git a/common/crash_reporter/crash_reporter_linux.cc b/common/crash_reporter/crash_reporter_linux.cc index 7bc6d1c2..2fab44a8 100644 --- a/common/crash_reporter/crash_reporter_linux.cc +++ b/common/crash_reporter/crash_reporter_linux.cc @@ -157,8 +157,6 @@ bool CrashReporterLinux::CrashDone(const MinidumpDescriptor& minidump, info.log_filename = log_path; #endif // TODO(zcbenz): Set the correct process_type here. - info.process_type = "browser"; - info.process_type_length = 7; info.distro = base::g_linux_distro; info.distro_length = my_strlen(base::g_linux_distro); info.upload = true; diff --git a/common/crash_reporter/linux/crash_dump_handler.cc b/common/crash_reporter/linux/crash_dump_handler.cc index afbd44e6..42556082 100644 --- a/common/crash_reporter/linux/crash_dump_handler.cc +++ b/common/crash_reporter/linux/crash_dump_handler.cc @@ -552,12 +552,6 @@ void HandleCrashDump(const BreakpadInfo& info) { } } - if (info.process_type_length) { - writer.AddPairString("ptype", info.process_type); - writer.AddBoundary(); - writer.Flush(); - } - if (info.distro_length) { static const char distro_msg[] = "lsb-release"; writer.AddPairString(distro_msg, info.distro); diff --git a/common/crash_reporter/linux/crash_dump_handler.h b/common/crash_reporter/linux/crash_dump_handler.h index 3ff5d796..a91a3c38 100644 --- a/common/crash_reporter/linux/crash_dump_handler.h +++ b/common/crash_reporter/linux/crash_dump_handler.h @@ -24,8 +24,6 @@ struct BreakpadInfo { const char* asan_report_str; // ASan report. unsigned asan_report_length; // Length of |asan_report_length|. #endif - const char* process_type; // Process type, e.g. "renderer". - unsigned process_type_length; // Length of |process_type|. const char* distro; // Linux distro string. unsigned distro_length; // Length of |distro|. bool upload; // Whether to upload or save crash dump. -- 2.43.0