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

Unified Diff: components/sync/syncable/directory.cc

Issue 2545173002: [tracing] Remove MemoryAllocatorDump::process_memory_dump (Closed)
Patch Set: Fix include. Created 4 years 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_allocator_dump.h ('k') | components/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory.cc
diff --git a/components/sync/syncable/directory.cc b/components/sync/syncable/directory.cc
index 31cbb8699719a4695bde6e49d2673c2cf55b84cd..ba417e757a4f322bddbcaa6f6e08ebda9df30b1e 100644
--- a/components/sync/syncable/directory.cc
+++ b/components/sync/syncable/directory.cc
@@ -944,8 +944,7 @@ void Directory::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) {
if (store_) {
std::string dump_name =
base::StringPrintf("%s/store", dump_name_base.c_str());
- auto* dump = pmd->CreateAllocatorDump(dump_name);
- store_->ReportMemoryUsage(dump);
+ store_->ReportMemoryUsage(pmd, dump_name);
}
}
« no previous file with comments | « base/trace_event/memory_allocator_dump.h ('k') | components/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698