#include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/metrics_utils.h"
#include "base/metrics/histogram_functions.h"
namespace enterprise_connectors {
void LogKeyRotationCommandError(KeyRotationCommandError error) { … }
void LogKeyRotationExitCode(int exit_code) { … }
#if BUILDFLAG(IS_WIN)
void LogUnexpectedHresult(HRESULT result) {
static constexpr char kHresultHistogram[] =
"Enterprise.DeviceTrust.KeyRotationCommand.Error.Hresult";
base::UmaHistogramSparse(kHresultHistogram, result);
}
#endif
}