mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
Simplify MinidumpModuleWriter’s module name requirement implementation.
TEST=minidump_test MinidumpModuleWriter* R=rsesek@chromium.org Review URL: https://codereview.chromium.org/633163002
This commit is contained in:
parent
40602fab1f
commit
b677bc4ec0
@ -250,13 +250,12 @@ void MinidumpModuleWriter::SetFileFlagsAndMask(uint32_t file_flags,
|
||||
|
||||
bool MinidumpModuleWriter::Freeze() {
|
||||
DCHECK_EQ(state(), kStateMutable);
|
||||
CHECK(name_);
|
||||
|
||||
if (!MinidumpWritable::Freeze()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CHECK(name_);
|
||||
|
||||
name_->RegisterRVA(&module_.ModuleNameRva);
|
||||
|
||||
if (codeview_record_) {
|
||||
@ -281,11 +280,10 @@ size_t MinidumpModuleWriter::SizeOfObject() {
|
||||
|
||||
std::vector<internal::MinidumpWritable*> MinidumpModuleWriter::Children() {
|
||||
DCHECK_GE(state(), kStateFrozen);
|
||||
DCHECK(name_);
|
||||
|
||||
std::vector<MinidumpWritable*> children;
|
||||
if (name_) {
|
||||
children.push_back(name_.get());
|
||||
}
|
||||
if (codeview_record_) {
|
||||
children.push_back(codeview_record_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user