]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: No need of |ptype| parameter.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 12:59:27 +0000 (20:59 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 26 Feb 2014 12:59:27 +0000 (20:59 +0800)
common/crash_reporter/crash_reporter_linux.cc
common/crash_reporter/linux/crash_dump_handler.cc
common/crash_reporter/linux/crash_dump_handler.h

index 7bc6d1c2cef9ca349661a23b1f53d85e093afa25..2fab44a81fc31ddc120ca72eaa66892def9f764e 100644 (file)
@@ -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;
index afbd44e6228b5c6052cc67a2cb931c5163b8f632..425560826ff69a9c00fdde22b0888a9db750e062 100644 (file)
@@ -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);
index 3ff5d7964a1b98b632307910afbddd922bb1141f..a91a3c385579b9baadbd2f9bc7272605831527d4 100644 (file)
@@ -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.