Index: minidump/minidump_module_crashpad_info_writer.cc |
diff --git a/minidump/minidump_module_crashpad_info_writer.cc b/minidump/minidump_module_crashpad_info_writer.cc |
index eae793bb4792fbd5da9bce15613b5d8a8b03cccd..a7afbda90b53005992508671e16d6837e17987a1 100644 |
--- a/minidump/minidump_module_crashpad_info_writer.cc |
+++ b/minidump/minidump_module_crashpad_info_writer.cc |
@@ -32,10 +32,10 @@ MinidumpModuleCrashpadInfoWriter::~MinidumpModuleCrashpadInfoWriter() { |
} |
void MinidumpModuleCrashpadInfoWriter::SetSimpleAnnotations( |
- MinidumpSimpleStringDictionaryWriter* simple_annotations) { |
+ scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations) { |
DCHECK_EQ(state(), kStateMutable); |
- simple_annotations_ = simple_annotations; |
+ simple_annotations_ = simple_annotations.Pass(); |
} |
bool MinidumpModuleCrashpadInfoWriter::Freeze() { |
@@ -65,7 +65,7 @@ MinidumpModuleCrashpadInfoWriter::Children() { |
std::vector<MinidumpWritable*> children; |
if (simple_annotations_) { |
- children.push_back(simple_annotations_); |
+ children.push_back(simple_annotations_.get()); |
} |
return children; |
@@ -89,10 +89,10 @@ MinidumpModuleCrashpadInfoListWriter::~MinidumpModuleCrashpadInfoListWriter() { |
} |
void MinidumpModuleCrashpadInfoListWriter::AddModule( |
- MinidumpModuleCrashpadInfoWriter* module) { |
+ scoped_ptr<MinidumpModuleCrashpadInfoWriter> module) { |
DCHECK_EQ(state(), kStateMutable); |
- modules_.push_back(module); |
+ modules_.push_back(module.release()); |
} |
bool MinidumpModuleCrashpadInfoListWriter::Freeze() { |