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

Side by Side Diff: chrome/common/metrics/metrics_service_base.cc

Issue 239093004: Move part of metrics from chrome/common to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding TBR section for owners of minor changes. Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/metrics/metrics_service_base.h" 5 #include "chrome/common/metrics/metrics_service_base.h"
6 6
7 #include <cstdlib> 7 #include <cstdlib>
8 8
9 #include "chrome/common/metrics/metrics_log_base.h" 9 #include "components/metrics/metrics_log_base.h"
10 10
11 using base::Histogram; 11 using base::Histogram;
12 12
13 MetricsServiceBase::MetricsServiceBase() 13 MetricsServiceBase::MetricsServiceBase()
14 : histogram_snapshot_manager_(this) { 14 : histogram_snapshot_manager_(this) {
15 } 15 }
16 16
17 MetricsServiceBase::~MetricsServiceBase() { 17 MetricsServiceBase::~MetricsServiceBase() {
18 } 18 }
19 19
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void MetricsServiceBase::UniqueInconsistencyDetected( 52 void MetricsServiceBase::UniqueInconsistencyDetected(
53 base::HistogramBase::Inconsistency problem) { 53 base::HistogramBase::Inconsistency problem) {
54 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", 54 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
55 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE); 55 problem, base::HistogramBase::NEVER_EXCEEDED_VALUE);
56 } 56 }
57 57
58 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) { 58 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) {
59 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", 59 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
60 std::abs(amount)); 60 std::abs(amount));
61 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698