Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h b/third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h
index 0b25db69ce3ec5115365852678d2d24d15ec402c..ab77447b2fbd91eeea4e4b5d8289a4af9d961abf 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h
+++ b/third_party/crashpad/crashpad/minidump/minidump_module_crashpad_info_writer.h
@@ -18,10 +18,10 @@
#include <stdint.h>
#include <sys/types.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "minidump/minidump_extensions.h"
#include "minidump/minidump_string_writer.h"
#include "minidump/minidump_writable.h"
@@ -62,7 +62,7 @@ class MinidumpModuleCrashpadInfoWriter final
//!
//! \note Valid in #kStateMutable.
void SetListAnnotations(
- scoped_ptr<MinidumpUTF8StringListWriter> list_annotations);
+ std::unique_ptr<MinidumpUTF8StringListWriter> list_annotations);
//! \brief Arranges for MinidumpModuleCrashpadInfo::simple_annotations to
//! point to the MinidumpSimpleStringDictionaryWriter object to be written
@@ -73,7 +73,7 @@ class MinidumpModuleCrashpadInfoWriter final
//!
//! \note Valid in #kStateMutable.
void SetSimpleAnnotations(
- scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations);
+ std::unique_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations);
//! \brief Determines whether the object is useful.
//!
@@ -93,8 +93,8 @@ class MinidumpModuleCrashpadInfoWriter final
private:
MinidumpModuleCrashpadInfo module_;
- scoped_ptr<MinidumpUTF8StringListWriter> list_annotations_;
- scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_;
+ std::unique_ptr<MinidumpUTF8StringListWriter> list_annotations_;
+ std::unique_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_;
DISALLOW_COPY_AND_ASSIGN(MinidumpModuleCrashpadInfoWriter);
};
@@ -134,7 +134,7 @@ class MinidumpModuleCrashpadInfoListWriter final
//!
//! \note Valid in #kStateMutable.
void AddModule(
- scoped_ptr<MinidumpModuleCrashpadInfoWriter> module_crashpad_info,
+ std::unique_ptr<MinidumpModuleCrashpadInfoWriter> module_crashpad_info,
size_t minidump_module_list_index);
//! \brief Determines whether the object is useful.

Powered by Google App Engine
This is Rietveld 408576698