Index: base/trace_event/process_memory_totals_dump_provider.cc |
diff --git a/base/trace_event/process_memory_totals_dump_provider.cc b/base/trace_event/process_memory_totals_dump_provider.cc |
index a8617207dcfc35350496ebf7b27c8d758c891679..f447a1e745c5450586a102cbca35016690f8ea11 100644 |
--- a/base/trace_event/process_memory_totals_dump_provider.cc |
+++ b/base/trace_event/process_memory_totals_dump_provider.cc |
@@ -25,17 +25,6 @@ namespace trace_event { |
// static |
uint64 ProcessMemoryTotalsDumpProvider::rss_bytes_for_testing = 0; |
-namespace { |
- |
-ProcessMetrics* CreateProcessMetricsForCurrentProcess() { |
-#if !defined(OS_MACOSX) || defined(OS_IOS) |
- return ProcessMetrics::CreateProcessMetrics(GetCurrentProcessHandle()); |
-#else |
- return ProcessMetrics::CreateProcessMetrics(GetCurrentProcessHandle(), NULL); |
-#endif |
-} |
-} // namespace |
- |
// static |
ProcessMemoryTotalsDumpProvider* |
ProcessMemoryTotalsDumpProvider::GetInstance() { |
@@ -45,8 +34,7 @@ ProcessMemoryTotalsDumpProvider::GetInstance() { |
} |
ProcessMemoryTotalsDumpProvider::ProcessMemoryTotalsDumpProvider() |
- : process_metrics_(CreateProcessMetricsForCurrentProcess()) { |
-} |
+ : process_metrics_(ProcessMetrics::CreateCurrentProcessMetrics()) {} |
ProcessMemoryTotalsDumpProvider::~ProcessMemoryTotalsDumpProvider() { |
} |