[Cleanup] Rename UMA_HISTOGRAM_SPARSE_SLOWLY to base::UmaHistogramSparse().

R=mark@chromium.org

Bug: chromium:773850
Change-Id: Idef7b4c821dcac03e095d1400534ddf503a22423
Reviewed-on: https://chromium-review.googlesource.com/828530
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Ilya Sherman 2017-12-15 00:49:39 -08:00 committed by Mark Mentovai
parent 7662fb087f
commit 344acadfdd

View File

@ -14,8 +14,8 @@
#include "util/misc/metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
#include "build/build_config.h"
#if defined(OS_MACOSX)
@ -91,8 +91,8 @@ void Metrics::ExceptionCaptureResult(CaptureResult result) {
// static
void Metrics::ExceptionCode(uint32_t exception_code) {
UMA_HISTOGRAM_SPARSE_SLOWLY("Crashpad.ExceptionCode." METRICS_OS_NAME,
static_cast<int32_t>(exception_code));
base::UmaHistogramSparse("Crashpad.ExceptionCode." METRICS_OS_NAME,
static_cast<int32_t>(exception_code));
}
// static
@ -109,7 +109,7 @@ void Metrics::HandlerLifetimeMilestone(LifetimeMilestone milestone) {
// static
void Metrics::HandlerCrashed(uint32_t exception_code) {
UMA_HISTOGRAM_SPARSE_SLOWLY(
base::UmaHistogramSparse(
"Crashpad.HandlerCrash.ExceptionCode." METRICS_OS_NAME,
static_cast<int32_t>(exception_code));
}