| OLD | NEW |
| 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 "chrome/common/metrics/metrics_log_base.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void MetricsServiceBase::InconsistencyDetected(int problem) { | 44 void MetricsServiceBase::InconsistencyDetected(int problem) { |
| 45 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser", | 45 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser", |
| 46 problem, Histogram::NEVER_EXCEEDED_VALUE); | 46 problem, Histogram::NEVER_EXCEEDED_VALUE); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void MetricsServiceBase::UniqueInconsistencyDetected(int problem) { | 49 void MetricsServiceBase::UniqueInconsistencyDetected(int problem) { |
| 50 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", | 50 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", |
| 51 problem, Histogram::NEVER_EXCEEDED_VALUE); | 51 problem, Histogram::NEVER_EXCEEDED_VALUE); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void MetricsServiceBase::SnapshotProblemResolved(int amount) { | 54 void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) { |
| 55 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", | 55 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", |
| 56 std::abs(amount)); | 56 std::abs(amount)); |
| 57 } | 57 } |
| OLD | NEW |