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

Unified Diff: src/platform/metrics/metrics_daemon.h

Issue 1642018: Update the libmetrics API to match the new Chrome interface. (Closed)
Patch Set: Address review comments. Created 10 years, 8 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
« no previous file with comments | « src/platform/metrics/metrics_client.cc ('k') | src/platform/metrics/metrics_daemon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/metrics/metrics_daemon.h
diff --git a/src/platform/metrics/metrics_daemon.h b/src/platform/metrics/metrics_daemon.h
index dc097b5e15a04c51dd6478d153b7103ed818fc15..b18e3667e1868265dd86bd4af21e81e4999c7a02 100644
--- a/src/platform/metrics/metrics_daemon.h
+++ b/src/platform/metrics/metrics_daemon.h
@@ -63,11 +63,11 @@ class MetricsDaemon {
// Given a string with the name of a state, returns the id for the state.
NetworkStateId GetNetworkStateId(const char* state_name);
- // Sends a stat to Chrome for transport to UMA.
- void ChromePublishMetric(const char* name, int value);
-
- // Prints a stat for testing.
- void TestPublishMetric(const char* name, int value);
+ // Sends a stat to Chrome for transport to UMA (or prints it for
+ // testing). See MetricsLibrary::SendToChrome in metrics_library.h
+ // for a description of the arguments.
+ void PublishMetric(const char* name, int sample,
+ int min, int max, int nbuckets);
#if 0
// Fetches a name-value hash table from DBus.
« no previous file with comments | « src/platform/metrics/metrics_client.cc ('k') | src/platform/metrics/metrics_daemon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698