blob: cb3f0166955c98268b9e4bfcc08b8df250269a5c [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/power/auto_screen_brightness/utils.h"
#include "base/metrics/histogram_macros.h"
namespace chromeos {
namespace power {
namespace auto_screen_brightness {
void LogParameterError(ParameterError error) {
UMA_HISTOGRAM_ENUMERATION("AutoScreenBrightness.ParameterError", error);
}
void LogDataError(DataError error) {
UMA_HISTOGRAM_ENUMERATION("AutoScreenBrightness.DataError", error);
}
double ConvertToLog(double value) {
return std::log(1 + value);
}
} // namespace auto_screen_brightness
} // namespace power
} // namespace chromeos