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

Unified Diff: chrome/browser/supervised_user/supervised_user_site_list.cc

Issue 928253002: Use SCOPED_UMA_HISTOGRAM_TIMER in SupervisedUserSiteList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/supervised_user/supervised_user_site_list.cc
diff --git a/chrome/browser/supervised_user/supervised_user_site_list.cc b/chrome/browser/supervised_user/supervised_user_site_list.cc
index 9203e7690c92a50a4ededdaf71364d70a106acc1..b74af9feab723144ebd50ed0289f39262928baf0 100644
--- a/chrome/browser/supervised_user/supervised_user_site_list.cc
+++ b/chrome/browser/supervised_user/supervised_user_site_list.cc
@@ -7,7 +7,7 @@
#include "base/files/file_util.h"
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
-#include "base/metrics/histogram.h"
+#include "base/metrics/histogram_macros.h"
#include "base/task_runner_util.h"
#include "base/values.h"
#include "chrome/browser/safe_json_parser.h"
@@ -28,11 +28,9 @@ namespace {
bool g_load_in_process = false;
std::string ReadFileOnBlockingThread(const base::FilePath& path) {
- base::TimeTicks start = base::TimeTicks::Now();
+ SCOPED_UMA_HISTOGRAM_TIMER("ManagedUsers.Whitelist.ReadDuration");
std::string contents;
base::ReadFileToString(path, &contents);
- UMA_HISTOGRAM_TIMES("ManagedUsers.Whitelist.ReadDuration",
- base::TimeTicks::Now() - start);
return contents;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698