Rename and clarify ManagedUsers.SafeSitesDelay metric
The name and description of the histogram are inaccurate: supervised user filtering does not use this endpoint; only Enterprise filtering uses it. I have renamed the histogram and updated the histogram description. In passing I think the ownership of both the code and histograms should move to the Enterprise team. OBSOLETE_HISTOGRAM[ManagedUsers.SafeSitesDelay]=Renamed to Enterprise.SafeSites.Latency Bug: b/299088120 Change-Id: Ib92700d03e9a0a1b63700d84d20706cc9899267c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4898199 Reviewed-by: Aga Wronska <agawronska@chromium.org> Reviewed-by: Sébastien Lalancette <seblalancette@chromium.org> Reviewed-by: Fabio Tirelo <ftirelo@chromium.org> Commit-Queue: James Lee <ljjlee@google.com> Auto-Submit: James Lee <ljjlee@google.com> Cr-Commit-Position: refs/heads/main@{#1204557}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
cf287b716e
commit
f234769a2f
components/safe_search_api
tools/metrics/histograms/metadata
@ -1,2 +1,2 @@
|
||||
treib@chromium.org
|
||||
agawronska@chromium.org
|
||||
agawronska@chromium.org
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/functional/callback.h"
|
||||
#include "base/json/json_reader.h"
|
||||
#include "base/metrics/histogram_macros.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/strings/escape.h"
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "base/strings/string_util.h"
|
||||
@ -147,9 +147,8 @@ void SafeSearchURLCheckerClient::OnSimpleLoaderComplete(
|
||||
: ClientClassification::kAllowed;
|
||||
}
|
||||
|
||||
// TODO(msramek): Consider moving this to SupervisedUserResourceThrottle.
|
||||
UMA_HISTOGRAM_TIMES("ManagedUsers.SafeSitesDelay",
|
||||
base::TimeTicks::Now() - check->start_time);
|
||||
base::UmaHistogramTimes("Enterprise.SafeSites.Latency",
|
||||
base::TimeTicks::Now() - check->start_time);
|
||||
|
||||
std::move(check->callback).Run(check->url, classification);
|
||||
}
|
||||
|
Reference in New Issue
Block a user