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

Unified Diff: content/child/child_thread_impl.cc

Issue 1468993003: [Eraser] Remove chrome://tcmalloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index be915a08df82b9be4e991680f17a9c066617e54b..251a5c13f3965cf45a9c12355d4f24dbfe507c1c 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -8,7 +8,6 @@
#include <string>
-#include "base/allocator/allocator_extension.h"
#include "base/base_switches.h"
#include "base/basictypes.h"
#include "base/command_line.h"
@@ -658,9 +657,6 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
OnProcessBackgrounded)
IPC_MESSAGE_HANDLER(MojoMsg_BindExternalMojoShellHandle,
OnBindExternalMojoShellHandle)
-#if defined(USE_TCMALLOC)
- IPC_MESSAGE_HANDLER(ChildProcessMsg_GetTcmallocStats, OnGetTcmallocStats)
-#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -730,16 +726,6 @@ void ChildThreadImpl::OnBindExternalMojoShellHandle(
#endif // defined(MOJO_SHELL_CLIENT)
}
-#if defined(USE_TCMALLOC)
-void ChildThreadImpl::OnGetTcmallocStats() {
- std::string result;
- char buffer[1024 * 32];
- base::allocator::GetStats(buffer, sizeof(buffer));
- result.append(buffer);
- Send(new ChildProcessHostMsg_TcmallocStats(result));
-}
-#endif
-
ChildThreadImpl* ChildThreadImpl::current() {
return g_lazy_tls.Pointer()->Get();
}

Powered by Google App Engine
This is Rietveld 408576698