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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_simple_string_dictionary_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_simple_string_dictionary_writer.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_simple_string_dictionary_writer.h b/third_party/crashpad/crashpad/minidump/minidump_simple_string_dictionary_writer.h
index 975f019f1a5aa2c8829a92510cbc061df854a6e3..4e23717f71a0a6f0bd8683df4cd3f3e91284d314 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_simple_string_dictionary_writer.h
+++ b/third_party/crashpad/crashpad/minidump/minidump_simple_string_dictionary_writer.h
@@ -18,11 +18,11 @@
#include <sys/types.h>
#include <map>
+#include <memory>
#include <string>
#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"
@@ -112,7 +112,8 @@ class MinidumpSimpleStringDictionaryWriter final
//! replace the previous one.
//!
//! \note Valid in #kStateMutable.
- void AddEntry(scoped_ptr<MinidumpSimpleStringDictionaryEntryWriter> entry);
+ void AddEntry(
+ std::unique_ptr<MinidumpSimpleStringDictionaryEntryWriter> entry);
//! \brief Determines whether the object is useful.
//!
@@ -135,7 +136,8 @@ class MinidumpSimpleStringDictionaryWriter final
// This object owns the MinidumpSimpleStringDictionaryEntryWriter objects.
std::map<std::string, MinidumpSimpleStringDictionaryEntryWriter*> entries_;
- scoped_ptr<MinidumpSimpleStringDictionary> simple_string_dictionary_base_;
+ std::unique_ptr<MinidumpSimpleStringDictionary>
+ simple_string_dictionary_base_;
DISALLOW_COPY_AND_ASSIGN(MinidumpSimpleStringDictionaryWriter);
};

Powered by Google App Engine
This is Rietveld 408576698