Index: content/common/child_thread.cc |
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc |
index b701ba2663bcab81335b7f033cadf2064fc6ed23..0e69c65aa4afeb6966dbb5298db1cd12af48e345 100644 |
--- a/content/common/child_thread.cc |
+++ b/content/common/child_thread.cc |
@@ -4,6 +4,7 @@ |
#include "content/common/child_thread.h" |
+#include "base/allocator/allocator_extension.h" |
#include "base/command_line.h" |
#include "base/message_loop.h" |
#include "base/process.h" |
@@ -27,10 +28,6 @@ |
#include "content/common/handle_enumerator_win.h" |
#endif |
-#if defined(USE_TCMALLOC) |
-#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h" |
-#endif |
- |
using tracked_objects::ThreadData; |
ChildThread::ChildThread() { |
@@ -257,7 +254,7 @@ void ChildThread::OnDumpHandles() { |
void ChildThread::OnGetTcmallocStats() { |
std::string result; |
char buffer[1024 * 32]; |
- MallocExtension::instance()->GetStats(buffer, sizeof(buffer)); |
+ base::allocator::GetStats(buffer, sizeof(buffer)); |
result.append(buffer); |
Send(new ChildProcessHostMsg_TcmallocStats(result)); |
} |