Index: chrome/browser/safe_browsing/safe_browsing_database.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc |
index 81948a60ddfce3b4ed8504acbf709664ae9ecce9..2f1979c05ebf16951f0eec98b280d4d2c6aecd92 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc |
@@ -1429,15 +1429,8 @@ void SafeBrowsingDatabaseNew::UpdatePrefixSetUrlStore( |
// Measure the amount of IO during the filter build. |
base::IoCounters io_before, io_after; |
- base::ProcessHandle handle = base::GetCurrentProcessHandle(); |
scoped_ptr<base::ProcessMetrics> metric( |
-#if !defined(OS_MACOSX) |
- base::ProcessMetrics::CreateProcessMetrics(handle) |
-#else |
- // Getting stats only for the current process is enough, so NULL is fine. |
- base::ProcessMetrics::CreateProcessMetrics(handle, NULL) |
-#endif |
- ); |
+ base::ProcessMetrics::CreateCurrentProcessMetrics()); |
// IoCounters are currently not supported on Mac, and may not be |
// available for Linux, so we check the result and only show IO |