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

Unified Diff: src/platform/metrics/metrics_client.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_client.cc
diff --git a/src/platform/metrics/metrics_client.cc b/src/platform/metrics/metrics_client.cc
index ad137be99402abc88e4e72c920e5318b7431be83..e85c4d473b8e2041eddf61868a26e30480c85c8a 100644
--- a/src/platform/metrics/metrics_client.cc
+++ b/src/platform/metrics/metrics_client.cc
@@ -78,14 +78,16 @@ int main(int argc, char** argv) {
}
if (send_to_chrome) {
+ MetricsLibrary metrics_lib;
+ metrics_lib.Init();
if (send_enum) {
int max = atoi(argv[name_index + 2]);
- MetricsLibrary::SendEnumToChrome(name, sample, max);
+ metrics_lib.SendEnumToUMA(name, sample, max);
} else {
int min = atoi(argv[name_index + 2]);
int max = atoi(argv[name_index + 3]);
int nbuckets = atoi(argv[name_index + 4]);
- MetricsLibrary::SendToChrome(name, sample, min, max, nbuckets);
+ metrics_lib.SendToUMA(name, sample, min, max, nbuckets);
}
}
return 0;

Powered by Google App Engine
This is Rietveld 408576698