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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_crashpad_info_writer.cc

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_crashpad_info_writer.cc
diff --git a/third_party/crashpad/crashpad/minidump/minidump_crashpad_info_writer.cc b/third_party/crashpad/crashpad/minidump/minidump_crashpad_info_writer.cc
index 2f2cd5529d28b8bcced1e795fca45983fa737fb7..c263f438096d0271ea5d79635b5b726f1f35383e 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_crashpad_info_writer.cc
+++ b/third_party/crashpad/crashpad/minidump/minidump_crashpad_info_writer.cc
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "minidump/minidump_crashpad_info_writer.h"
-
#include <utility>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
+#include "minidump/minidump_crashpad_info_writer.h"
#include "minidump/minidump_module_crashpad_info_writer.h"
#include "minidump/minidump_simple_string_dictionary_writer.h"
#include "snapshot/process_snapshot.h"
@@ -49,14 +49,14 @@ void MinidumpCrashpadInfoWriter::InitializeFromSnapshot(
SetClientID(client_id);
auto simple_annotations =
- make_scoped_ptr(new MinidumpSimpleStringDictionaryWriter());
+ base::WrapUnique(new MinidumpSimpleStringDictionaryWriter());
simple_annotations->InitializeFromMap(
process_snapshot->AnnotationsSimpleMap());
if (simple_annotations->IsUseful()) {
SetSimpleAnnotations(std::move(simple_annotations));
}
- auto modules = make_scoped_ptr(new MinidumpModuleCrashpadInfoListWriter());
+ auto modules = base::WrapUnique(new MinidumpModuleCrashpadInfoListWriter());
modules->InitializeFromSnapshot(process_snapshot->Modules());
if (modules->IsUseful()) {
@@ -77,14 +77,14 @@ void MinidumpCrashpadInfoWriter::SetClientID(const UUID& client_id) {
}
void MinidumpCrashpadInfoWriter::SetSimpleAnnotations(
- scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations) {
+ std::unique_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations) {
DCHECK_EQ(state(), kStateMutable);
simple_annotations_ = std::move(simple_annotations);
}
void MinidumpCrashpadInfoWriter::SetModuleList(
- scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list) {
+ std::unique_ptr<MinidumpModuleCrashpadInfoListWriter> module_list) {
DCHECK_EQ(state(), kStateMutable);
module_list_ = std::move(module_list);

Powered by Google App Engine
This is Rietveld 408576698