Index: webkit/glue/webkitclient_impl.cc |
=================================================================== |
--- webkit/glue/webkitclient_impl.cc (revision 35019) |
+++ webkit/glue/webkitclient_impl.cc (working copy) |
@@ -318,14 +318,7 @@ |
size_t WebKitClientImpl::memoryUsageMB() { |
using base::ProcessMetrics; |
static ProcessMetrics* process_metrics = |
-#if !defined(OS_MACOSX) |
ProcessMetrics::CreateProcessMetrics(base::GetCurrentProcessHandle()); |
-#else |
- // The default port provider is sufficient to get data for the current |
- // process. |
- ProcessMetrics::CreateProcessMetrics(base::GetCurrentProcessHandle(), |
- NULL); |
-#endif |
DCHECK(process_metrics); |
return process_metrics->GetPagefileUsage() >> 20; |
} |