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

Unified Diff: base/trace_event/memory_dump_manager.cc

Issue 1706163002: Refactoring: Remove an argument 'enabled' from onHeapProfilingEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | base/trace_event/memory_dump_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_manager.cc
diff --git a/base/trace_event/memory_dump_manager.cc b/base/trace_event/memory_dump_manager.cc
index a5492028f4ec8b534369b8246503eae416ca4bbe..2b9bc380ecca1848f269a86cba93623c94cc3bb2 100644
--- a/base/trace_event/memory_dump_manager.cc
+++ b/base/trace_event/memory_dump_manager.cc
@@ -143,7 +143,7 @@ void MemoryDumpManager::EnableHeapProfilingIfNeeded() {
AllocationContextTracker::SetCaptureEnabled(true);
for (auto mdp : dump_providers_)
- mdp->dump_provider->OnHeapProfilingEnabled(true);
+ mdp->dump_provider->OnHeapProfilingEnabled();
heap_profiling_enabled_ = true;
}
@@ -202,7 +202,7 @@ void MemoryDumpManager::RegisterDumpProvider(
}
if (heap_profiling_enabled_)
- mdp->OnHeapProfilingEnabled(true);
+ mdp->OnHeapProfilingEnabled();
}
void MemoryDumpManager::RegisterDumpProvider(
« no previous file with comments | « no previous file | base/trace_event/memory_dump_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698