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

Unified Diff: chrome/common/metrics/metrics_service_base.cc

Issue 294033007: [Metrics] Merge MetricsService and MetricsServiceBase classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/metrics/metrics_service_base.cc
diff --git a/chrome/common/metrics/metrics_service_base.cc b/chrome/common/metrics/metrics_service_base.cc
deleted file mode 100644
index 3bad34e2b97b4b4cdd922e40487d8b464c2a16cf..0000000000000000000000000000000000000000
--- a/chrome/common/metrics/metrics_service_base.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/metrics/metrics_service_base.h"
-
-#include <cstdlib>
-
-#include "components/metrics/metrics_log_base.h"
-
-using base::Histogram;
-
-MetricsServiceBase::MetricsServiceBase(PrefService* local_state,
- size_t max_ongoing_log_size)
- : log_manager_(local_state, max_ongoing_log_size),
- histogram_snapshot_manager_(this) {
-}
-
-MetricsServiceBase::~MetricsServiceBase() {
-}
-
-// static
-const char MetricsServiceBase::kServerUrl[] =
- "https://clients4.google.com/uma/v2";
-
-// static
-const char MetricsServiceBase::kMimeType[] = "application/vnd.chrome.uma";
-
-void MetricsServiceBase::RecordCurrentHistograms() {
- DCHECK(log_manager_.current_log());
- histogram_snapshot_manager_.PrepareDeltas(
- base::Histogram::kNoFlags, base::Histogram::kUmaTargetedHistogramFlag);
-}
-
-void MetricsServiceBase::RecordCurrentStabilityHistograms() {
- DCHECK(log_manager_.current_log());
- histogram_snapshot_manager_.PrepareDeltas(
- base::Histogram::kNoFlags, base::Histogram::kUmaStabilityHistogramFlag);
-}
-
-void MetricsServiceBase::RecordDelta(
- const base::HistogramBase& histogram,
- const base::HistogramSamples& snapshot) {
- log_manager_.current_log()->RecordHistogramDelta(histogram.histogram_name(),
- snapshot);
-}
-
-void MetricsServiceBase::InconsistencyDetected(
- base::HistogramBase::Inconsistency problem) {
- UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowser",
- problem, base::HistogramBase::NEVER_EXCEEDED_VALUE);
-}
-
-void MetricsServiceBase::UniqueInconsistencyDetected(
- base::HistogramBase::Inconsistency problem) {
- UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique",
- problem, base::HistogramBase::NEVER_EXCEEDED_VALUE);
-}
-
-void MetricsServiceBase::InconsistencyDetectedInLoggedCount(int amount) {
- UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
- std::abs(amount));
-}
« chrome/common/metrics/OWNERS ('K') | « chrome/common/metrics/metrics_service_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698