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

Unified Diff: chromecast/base/metrics/cast_metrics_helper.h

Issue 1974723002: [Chromecast] Add metric reporting to ConnectivityCheckerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add CastMetricsHelper::RecordEventWithValue Created 4 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: chromecast/base/metrics/cast_metrics_helper.h
diff --git a/chromecast/base/metrics/cast_metrics_helper.h b/chromecast/base/metrics/cast_metrics_helper.h
index e4b6c6f4a119afdbeb91e7b8dd870426c1c003eb..cf0cdffae0c88d8065b7d5f507052e97d2d416ba 100644
--- a/chromecast/base/metrics/cast_metrics_helper.h
+++ b/chromecast/base/metrics/cast_metrics_helper.h
@@ -77,6 +77,9 @@ class CastMetricsHelper {
// This is used as an in-place replacement of content::RecordComputedAction().
virtual void RecordSimpleAction(const std::string& action);
+ // Logs a generic event.
+ virtual void RecordEventWithValue(const std::string& action, int value);
+
// Logs application specific events.
virtual void RecordApplicationEvent(const std::string& event);
virtual void RecordApplicationEventWithValue(const std::string& event,
« no previous file with comments | « no previous file | chromecast/base/metrics/cast_metrics_helper.cc » ('j') | chromecast/net/connectivity_checker_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698