chromium/chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/metrics_utils.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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  // BUILDFLAG(IS_WIN)

}  // namespace enterprise_connectors