Index: snapshot/mac/module_snapshot_mac.cc |
diff --git a/snapshot/mac/module_snapshot_mac.cc b/snapshot/mac/module_snapshot_mac.cc |
index a290908c92b082e8259fa13fa61b7271d5b57633..ddbb6a00b9cb88fca15f6048b88f0b03d5317d43 100644 |
--- a/snapshot/mac/module_snapshot_mac.cc |
+++ b/snapshot/mac/module_snapshot_mac.cc |
@@ -136,6 +136,7 @@ void ModuleSnapshotMac::UUID(crashpad::UUID* uuid) const { |
} |
std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { |
+ INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
MachOImageAnnotationsReader annotations_reader( |
process_reader_, mach_o_image_reader_, name_); |
return annotations_reader.Vector(); |
@@ -143,6 +144,7 @@ std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { |
std::map<std::string, std::string> ModuleSnapshotMac::AnnotationsSimpleMap() |
const { |
+ INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
MachOImageAnnotationsReader annotations_reader( |
process_reader_, mach_o_image_reader_, name_); |
return annotations_reader.SimpleMap(); |