Index: minidump/minidump_crashpad_info_writer.cc |
diff --git a/minidump/minidump_crashpad_info_writer.cc b/minidump/minidump_crashpad_info_writer.cc |
index 5114843c33a74eccd424e1c0a2d9202b5a53f644..22be59773c83811d914dab003d2fb1dc2739005b 100644 |
--- a/minidump/minidump_crashpad_info_writer.cc |
+++ b/minidump/minidump_crashpad_info_writer.cc |
@@ -29,10 +29,10 @@ MinidumpCrashpadInfoWriter::~MinidumpCrashpadInfoWriter() { |
} |
void MinidumpCrashpadInfoWriter::SetModuleList( |
- MinidumpModuleCrashpadInfoListWriter* module_list) { |
+ scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list) { |
DCHECK_EQ(state(), kStateMutable); |
- module_list_ = module_list; |
+ module_list_ = module_list.Pass(); |
} |
bool MinidumpCrashpadInfoWriter::Freeze() { |
@@ -61,7 +61,7 @@ MinidumpCrashpadInfoWriter::Children() { |
std::vector<MinidumpWritable*> children; |
if (module_list_) { |
- children.push_back(module_list_); |
+ children.push_back(module_list_.get()); |
} |
return children; |