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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database.cc

Issue 1433603004: Add ProcessMetrics::CreateCurrentProcessMetrics() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a_counter_with_ts
Patch Set: Lei Zhang comments #3 (use CreateCurrentProcessMetrics where relevant, nits, comments) 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
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..00304a58a96e7efcdc47972f3b1b4fc7fe34e2a0 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
- );
+ ProcessMetrics::CreateCurrentProcessMetrics());
Lei Zhang 2015/11/10 22:02:29 base:: ?
fdoray 2015/11/11 22:04:38 Done.
// IoCounters are currently not supported on Mac, and may not be
// available for Linux, so we check the result and only show IO

Powered by Google App Engine
This is Rietveld 408576698