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

Side by Side Diff: components/metrics/test_metrics_provider.cc

Issue 2671603002: Add network information to UKM (Closed)
Patch Set: fix comments and includes Created 3 years, 10 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/metrics/test_metrics_provider.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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/metrics/test_metrics_provider.h" 5 #include "components/metrics/test_metrics_provider.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 8
9 namespace metrics { 9 namespace metrics {
10 10
(...skipping 15 matching lines...) Expand all
26 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Initial", 1, 2); 26 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Initial", 1, 2);
27 provide_initial_stability_metrics_called_ = true; 27 provide_initial_stability_metrics_called_ = true;
28 } 28 }
29 29
30 void TestMetricsProvider::ProvideStabilityMetrics( 30 void TestMetricsProvider::ProvideStabilityMetrics(
31 SystemProfileProto* system_profile_proto) { 31 SystemProfileProto* system_profile_proto) {
32 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Regular", 1, 2); 32 UMA_STABILITY_HISTOGRAM_ENUMERATION("TestMetricsProvider.Regular", 1, 2);
33 provide_stability_metrics_called_ = true; 33 provide_stability_metrics_called_ = true;
34 } 34 }
35 35
36 void TestMetricsProvider::ProvideSystemProfileMetrics(
37 SystemProfileProto* system_profile_proto) {
38 provide_system_profile_metrics_called_ = true;
39 }
40
36 } // namespace metrics 41 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_provider.h ('k') | components/ukm/ukm_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698