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

Unified Diff: base/trace_event/process_memory_dump.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_session_state.cc ('k') | base/trace_event/process_memory_dump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/process_memory_dump.h
diff --git a/base/trace_event/process_memory_dump.h b/base/trace_event/process_memory_dump.h
index 41efc735ff0417f08bb2c28b178b51fb81266eaa..5ac14fea939a53be452481cca2ab90ea50ac79cb 100644
--- a/base/trace_event/process_memory_dump.h
+++ b/base/trace_event/process_memory_dump.h
@@ -48,9 +48,10 @@ class BASE_EXPORT ProcessMemoryDump {
// Maps allocator dumps absolute names (allocator_name/heap/subheap) to
// MemoryAllocatorDump instances.
using AllocatorDumpsMap =
- std::unordered_map<std::string, scoped_ptr<MemoryAllocatorDump>>;
+ std::unordered_map<std::string, std::unique_ptr<MemoryAllocatorDump>>;
- using HeapDumpsMap = std::unordered_map<std::string, scoped_ptr<TracedValue>>;
+ using HeapDumpsMap =
+ std::unordered_map<std::string, std::unique_ptr<TracedValue>>;
#if defined(COUNT_RESIDENT_BYTES_SUPPORTED)
// Returns the number of bytes in a kernel memory page. Some platforms may
@@ -119,7 +120,7 @@ class BASE_EXPORT ProcessMemoryDump {
// must have the correct format. |trace_event::HeapDumper| will generate such
// a value from a |trace_event::AllocationRegister|.
void AddHeapDump(const std::string& absolute_name,
- scoped_ptr<TracedValue> heap_dump);
+ std::unique_ptr<TracedValue> heap_dump);
// Adds an ownership relationship between two MemoryAllocatorDump(s) with the
// semantics: |source| owns |target|, and has the effect of attributing
@@ -175,7 +176,7 @@ class BASE_EXPORT ProcessMemoryDump {
private:
MemoryAllocatorDump* AddAllocatorDumpInternal(
- scoped_ptr<MemoryAllocatorDump> mad);
+ std::unique_ptr<MemoryAllocatorDump> mad);
ProcessMemoryTotals process_totals_;
bool has_process_totals_;
« no previous file with comments | « base/trace_event/memory_dump_session_state.cc ('k') | base/trace_event/process_memory_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698