xref: /aosp_15_r20/external/cronet/components/metrics/structured/lib/histogram_util.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2024 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/metrics/structured/lib/histogram_util.h"
6 
7 #include "base/metrics/histogram_macros.h"
8 
9 namespace metrics::structured {
10 
LogInternalError(StructuredMetricsError error)11 void LogInternalError(StructuredMetricsError error) {
12   UMA_HISTOGRAM_ENUMERATION("UMA.StructuredMetrics.InternalError2", error);
13 }
14 
LogKeyValidation(KeyValidationState state)15 void LogKeyValidation(KeyValidationState state) {
16   UMA_HISTOGRAM_ENUMERATION("UMA.StructuredMetrics.KeyValidationState", state);
17 }
18 
19 }  // namespace metrics::structured
20