Index: minidump/minidump_crashpad_info_writer.cc |
diff --git a/minidump/minidump_crashpad_info_writer.cc b/minidump/minidump_crashpad_info_writer.cc |
index d8bdb0d36598450cd9071f949cedd842c547b5bc..9314224b7cd5f6b6d0eb2482686fe6c490d1c466 100644 |
--- a/minidump/minidump_crashpad_info_writer.cc |
+++ b/minidump/minidump_crashpad_info_writer.cc |
@@ -38,6 +38,10 @@ void MinidumpCrashpadInfoWriter::InitializeFromSnapshot( |
DCHECK_EQ(state(), kStateMutable); |
DCHECK(!module_list_); |
+ UUID report_id; |
+ process_snapshot->ReportID(&report_id); |
+ SetReportID(report_id); |
+ |
UUID client_id; |
process_snapshot->ClientID(&client_id); |
SetClientID(client_id); |
@@ -58,6 +62,12 @@ void MinidumpCrashpadInfoWriter::InitializeFromSnapshot( |
} |
} |
+void MinidumpCrashpadInfoWriter::SetReportID(const UUID& report_id) { |
+ DCHECK_EQ(state(), kStateMutable); |
+ |
+ crashpad_info_.report_id = report_id; |
+} |
+ |
void MinidumpCrashpadInfoWriter::SetClientID(const UUID& client_id) { |
DCHECK_EQ(state(), kStateMutable); |
@@ -128,7 +138,8 @@ MinidumpStreamType MinidumpCrashpadInfoWriter::StreamType() const { |
} |
bool MinidumpCrashpadInfoWriter::IsUseful() const { |
- return crashpad_info_.client_id != UUID() || |
+ return crashpad_info_.report_id != UUID() || |
+ crashpad_info_.client_id != UUID() || |
simple_annotations_ || |
module_list_; |
} |