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

Unified Diff: base/trace_event/malloc_dump_provider.cc

Issue 2902043007: allocator: rename use_experimental_allocator_shim to use_allocator_shim (Closed)
Patch Set: Created 3 years, 7 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/process/memory_unittest.cc ('k') | build/config/allocator.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/malloc_dump_provider.cc
diff --git a/base/trace_event/malloc_dump_provider.cc b/base/trace_event/malloc_dump_provider.cc
index 21357c7ab0d5baf9e85896985ce710ac8ddb561b..b575c6c24506f2db3d6a261c17d480010eb33537 100644
--- a/base/trace_event/malloc_dump_provider.cc
+++ b/base/trace_event/malloc_dump_provider.cc
@@ -32,7 +32,7 @@ namespace base {
namespace trace_event {
namespace {
-#if BUILDFLAG(USE_EXPERIMENTAL_ALLOCATOR_SHIM)
+#if BUILDFLAG(USE_ALLOCATOR_SHIM)
using allocator::AllocatorDispatch;
@@ -139,7 +139,7 @@ AllocatorDispatch g_allocator_hooks = {
&HookFreeDefiniteSize, /* free_definite_size_function */
nullptr, /* next */
};
-#endif // BUILDFLAG(USE_EXPERIMENTAL_ALLOCATOR_SHIM)
+#endif // BUILDFLAG(USE_ALLOCATOR_SHIM)
#if defined(OS_WIN)
// A structure containing some information about a given heap.
@@ -326,7 +326,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
}
void MallocDumpProvider::OnHeapProfilingEnabled(bool enabled) {
-#if BUILDFLAG(USE_EXPERIMENTAL_ALLOCATOR_SHIM)
+#if BUILDFLAG(USE_ALLOCATOR_SHIM)
if (enabled) {
allocation_register_.SetEnabled();
allocator::InsertAllocatorDispatch(&g_allocator_hooks);
« no previous file with comments | « base/process/memory_unittest.cc ('k') | build/config/allocator.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698