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

Unified Diff: components/discardable_memory/common/discardable_shared_memory_heap.cc

Issue 2694083005: memory-infra: Finish moving memory_infra from TracingController (Closed)
Patch Set: review Created 3 years, 10 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: components/discardable_memory/common/discardable_shared_memory_heap.cc
diff --git a/components/discardable_memory/common/discardable_shared_memory_heap.cc b/components/discardable_memory/common/discardable_shared_memory_heap.cc
index 7eacbeeec77e03d56bbe2efe6edd459c30cdc4d1..36a1aa972eb75e331c4ee00fad7be6ca9a336217 100644
--- a/components/discardable_memory/common/discardable_shared_memory_heap.cc
+++ b/components/discardable_memory/common/discardable_shared_memory_heap.cc
@@ -423,8 +423,7 @@ void DiscardableSharedMemoryHeap::OnMemoryDump(
// The global dump is created as a weak dump so that the segment is removed if
// the browser does not dump it (segment was purged).
const uint64_t tracing_process_id =
- base::trace_event::MemoryDumpManager::GetInstance()
- ->GetTracingProcessId();
+ base::trace_event::MemoryDumpManager::GetInstance()->tracing_process_id();
base::trace_event::MemoryAllocatorDumpGuid shared_segment_guid =
GetSegmentGUIDForTracing(tracing_process_id, segment_id);
// TODO(ssid): Make this weak once the GUID created is consistent

Powered by Google App Engine
This is Rietveld 408576698