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

Unified Diff: base/trace_event/memory_dump_session_state.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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
« no previous file with comments | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/memory_dump_session_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_session_state.h
diff --git a/base/trace_event/memory_dump_session_state.h b/base/trace_event/memory_dump_session_state.h
index 879545f658f2e9cea464d058f304a4838de071cf..7d871982e6e00229682dbf5838af8d3d9cea91ec 100644
--- a/base/trace_event/memory_dump_session_state.h
+++ b/base/trace_event/memory_dump_session_state.h
@@ -5,8 +5,9 @@
#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_
#define BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_
+#include <memory>
+
#include "base/base_export.h"
-#include "base/memory/scoped_ptr.h"
#include "base/trace_event/heap_profiler_stack_frame_deduplicator.h"
#include "base/trace_event/heap_profiler_type_name_deduplicator.h"
@@ -27,7 +28,7 @@ class BASE_EXPORT MemoryDumpSessionState
}
void SetStackFrameDeduplicator(
- scoped_ptr<StackFrameDeduplicator> stack_frame_deduplicator);
+ std::unique_ptr<StackFrameDeduplicator> stack_frame_deduplicator);
// Returns the type name deduplicator that should be used by memory dump
// providers when doing a heap dump.
@@ -36,7 +37,7 @@ class BASE_EXPORT MemoryDumpSessionState
}
void SetTypeNameDeduplicator(
- scoped_ptr<TypeNameDeduplicator> type_name_deduplicator);
+ std::unique_ptr<TypeNameDeduplicator> type_name_deduplicator);
private:
friend class RefCountedThreadSafe<MemoryDumpSessionState>;
@@ -44,11 +45,11 @@ class BASE_EXPORT MemoryDumpSessionState
// Deduplicates backtraces in heap dumps so they can be written once when the
// trace is finalized.
- scoped_ptr<StackFrameDeduplicator> stack_frame_deduplicator_;
+ std::unique_ptr<StackFrameDeduplicator> stack_frame_deduplicator_;
// Deduplicates type names in heap dumps so they can be written once when the
// trace is finalized.
- scoped_ptr<TypeNameDeduplicator> type_name_deduplicator_;
+ std::unique_ptr<TypeNameDeduplicator> type_name_deduplicator_;
};
} // namespace trace_event
« no previous file with comments | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/memory_dump_session_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698