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

Unified Diff: src/platform/metrics/metrics_library.cc

Issue 2037011: Remove the deprecated static metrics APIs. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 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: src/platform/metrics/metrics_library.cc
diff --git a/src/platform/metrics/metrics_library.cc b/src/platform/metrics/metrics_library.cc
index 2accb1ae830ecbb7ad0b5a73ec9e273c4d170c2a..98415a839c2d07bed4d6d0e24c1f9e5467e9fb4d 100644
--- a/src/platform/metrics/metrics_library.cc
+++ b/src/platform/metrics/metrics_library.cc
@@ -2,13 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/*
- * metrics_library.cc
- *
- * Created on: Dec 1, 2009
- * Author: sosa
- */
-
#include "metrics_library.h"
#include <errno.h>
@@ -137,9 +130,8 @@ bool MetricsLibrary::SendToAutotest(const string& name, int value) {
return true;
}
-// static
-bool MetricsLibrary::SendToChrome(const string& name, int sample,
- int min, int max, int nbuckets) {
+bool MetricsLibrary::SendToUMA(const string& name, int sample,
+ int min, int max, int nbuckets) {
// Format the message.
char message[kBufferSize];
int32_t message_length =
@@ -154,14 +146,8 @@ bool MetricsLibrary::SendToChrome(const string& name, int sample,
return SendMessageToChrome(message_length, message);
}
-bool MetricsLibrary::SendToUMA(const string& name, int sample,
- int min, int max, int nbuckets) {
- return SendToChrome(name, sample, min, max, nbuckets);
-}
-
-//static
-bool MetricsLibrary::SendEnumToChrome(const std::string& name, int sample,
- int max) {
+bool MetricsLibrary::SendEnumToUMA(const std::string& name, int sample,
+ int max) {
// Format the message.
char message[kBufferSize];
int32_t message_length =
@@ -175,8 +161,3 @@ bool MetricsLibrary::SendEnumToChrome(const std::string& name, int sample,
// Send the message.
return SendMessageToChrome(message_length, message);
}
-
-bool MetricsLibrary::SendEnumToUMA(const std::string& name, int sample,
- int max) {
- return SendEnumToChrome(name, sample, max);
-}
« src/platform/metrics/metrics_library.h ('K') | « src/platform/metrics/metrics_library.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698