ukm_rotation_scheduler.cc 962 B

123456789101112131415161718192021222324252627
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/ukm/ukm_rotation_scheduler.h"
  5. #include "base/metrics/histogram_macros.h"
  6. namespace ukm {
  7. UkmRotationScheduler::UkmRotationScheduler(
  8. const base::RepeatingClosure& upload_callback,
  9. bool fast_startup_for_testing,
  10. const base::RepeatingCallback<base::TimeDelta(void)>&
  11. upload_interval_callback)
  12. : metrics::MetricsRotationScheduler(upload_callback,
  13. upload_interval_callback,
  14. fast_startup_for_testing) {}
  15. UkmRotationScheduler::~UkmRotationScheduler() = default;
  16. void UkmRotationScheduler::LogMetricsInitSequence(InitSequence sequence) {
  17. UMA_HISTOGRAM_ENUMERATION("UKM.InitSequence", sequence,
  18. INIT_SEQUENCE_ENUM_SIZE);
  19. }
  20. } // namespace ukm