123456789101112131415161718192021222324252627 |
- // Copyright 2017 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 "components/ukm/ukm_rotation_scheduler.h"
- #include "base/metrics/histogram_macros.h"
- namespace ukm {
- UkmRotationScheduler::UkmRotationScheduler(
- const base::RepeatingClosure& upload_callback,
- bool fast_startup_for_testing,
- const base::RepeatingCallback<base::TimeDelta(void)>&
- upload_interval_callback)
- : metrics::MetricsRotationScheduler(upload_callback,
- upload_interval_callback,
- fast_startup_for_testing) {}
- UkmRotationScheduler::~UkmRotationScheduler() = default;
- void UkmRotationScheduler::LogMetricsInitSequence(InitSequence sequence) {
- UMA_HISTOGRAM_ENUMERATION("UKM.InitSequence", sequence,
- INIT_SEQUENCE_ENUM_SIZE);
- }
- } // namespace ukm
|