Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: components/ukm/ukm_rotation_scheduler.cc

Issue 2770853002: Create Ukm ReportingService implementation. (Closed)
Patch Set: Also revert datatracker unittest change Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/ukm/ukm_rotation_scheduler.h ('k') | components/ukm/ukm_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 #include "components/ukm/ukm_rotation_scheduler.h"
6
7 #include "base/metrics/histogram_macros.h"
8
9 namespace ukm {
10
11 UkmRotationScheduler::UkmRotationScheduler(
12 const base::Closure& upload_callback,
13 const base::Callback<base::TimeDelta(void)>& upload_interval_callback)
14 : metrics::MetricsRotationScheduler(upload_callback,
15 upload_interval_callback) {}
16
17 UkmRotationScheduler::~UkmRotationScheduler() = default;
18
19 void UkmRotationScheduler::LogMetricsInitSequence(InitSequence sequence) {
20 UMA_HISTOGRAM_ENUMERATION("UKM.InitSequence", sequence,
21 INIT_SEQUENCE_ENUM_SIZE);
22 }
23
24 } // namespace ukm
OLDNEW
« no previous file with comments | « components/ukm/ukm_rotation_scheduler.h ('k') | components/ukm/ukm_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698