Index: chrome/browser/renderer_host/chrome_render_message_filter.cc |
=================================================================== |
--- chrome/browser/renderer_host/chrome_render_message_filter.cc (revision 96064) |
+++ chrome/browser/renderer_host/chrome_render_message_filter.cc (working copy) |
@@ -4,7 +4,7 @@ |
#include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
-#include "base/file_util.h" |
+#include "base/file_path.h" |
#include "base/metrics/histogram.h" |
#include "chrome/browser/automation/automation_resource_message_filter.h" |
#include "chrome/browser/browser_process.h" |
@@ -121,8 +121,6 @@ |
OnExtensionRequestForIOThread) |
#if defined(USE_TCMALLOC) |
IPC_MESSAGE_HANDLER(ViewHostMsg_RendererTcmalloc, OnRendererTcmalloc) |
- IPC_MESSAGE_HANDLER(ViewHostMsg_WriteTcmallocHeapProfile_ACK, |
- OnWriteTcmallocHeapProfile) |
#endif |
IPC_MESSAGE_HANDLER(ViewHostMsg_GetPluginPolicies, OnGetPluginPolicies) |
IPC_MESSAGE_HANDLER(ViewHostMsg_AllowDatabase, OnAllowDatabase) |
@@ -386,17 +384,10 @@ |
} |
#if defined(USE_TCMALLOC) |
-void ChromeRenderMessageFilter::OnRendererTcmalloc(const std::string& output) { |
- base::ProcessId pid = base::GetProcId(peer_handle()); |
+void ChromeRenderMessageFilter::OnRendererTcmalloc(base::ProcessId pid, |
+ const std::string& output) { |
AboutTcmallocRendererCallback(pid, output); |
} |
- |
-void ChromeRenderMessageFilter::OnWriteTcmallocHeapProfile( |
- const FilePath::StringType& filepath, |
- const std::string& output) { |
- VLOG(0) << "Writing renderer heap profile dump to: " << filepath; |
- file_util::WriteFile(FilePath(filepath), output.c_str(), output.size()); |
-} |
#endif |
void ChromeRenderMessageFilter::OnGetPluginPolicies( |