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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 1468033002: Remove unused memory functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused functions from base/allocator 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
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 48f8e3fe391e9a4ada160cad28e58f00ab55eec4..3ffdc89d6393795aa585b0d50d0382d6ec69b39c 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -149,8 +149,6 @@ RenderMessageFilter::~RenderMessageFilter() {
bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(RenderMessageFilter, message)
- IPC_MESSAGE_HANDLER(RenderProcessHostMsg_GetProcessMemorySizes,
- OnGetProcessMemorySizes)
IPC_MESSAGE_HANDLER(ViewHostMsg_GenerateRoutingID, OnGenerateRoutingID)
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWindow, OnCreateWindow)
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWidget, OnCreateWidget)
@@ -291,24 +289,6 @@ void RenderMessageFilter::OnCreateFullscreenWidget(int opener_id,
render_widget_helper_->CreateNewFullscreenWidget(opener_id, route_id);
}
-void RenderMessageFilter::OnGetProcessMemorySizes(size_t* private_bytes,
- size_t* shared_bytes) {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
- using base::ProcessMetrics;
-#if !defined(OS_MACOSX) || defined(OS_IOS)
- scoped_ptr<ProcessMetrics> metrics(ProcessMetrics::CreateProcessMetrics(
- PeerHandle()));
-#else
- scoped_ptr<ProcessMetrics> metrics(ProcessMetrics::CreateProcessMetrics(
- PeerHandle(), BrowserChildProcessHost::GetPortProvider()));
-#endif
- if (!metrics->GetMemoryBytes(private_bytes, shared_bytes)) {
- *private_bytes = 0;
- *shared_bytes = 0;
- }
-}
-
-
void RenderMessageFilter::OnGenerateRoutingID(int* route_id) {
*route_id = render_widget_helper_->GetNextRoutingID();
}
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698