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

Unified Diff: components/metrics/metrics_service_client.h

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: Rebase Created 3 years, 11 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: components/metrics/metrics_service_client.h
diff --git a/components/metrics/metrics_service_client.h b/components/metrics/metrics_service_client.h
index c1c28457a679fb760348bd56006dca9c48f3e6ce..858d1d87db491f533ddcc9611231115b1d41f6ba 100644
--- a/components/metrics/metrics_service_client.h
+++ b/components/metrics/metrics_service_client.h
@@ -20,6 +20,10 @@ namespace base {
class FilePath;
}
+namespace ukm {
+class UkmService;
+}
+
namespace metrics {
class MetricsLogUploader;
@@ -37,6 +41,9 @@ class MetricsServiceClient {
// implementation will own the MetricsService instance being returned).
virtual MetricsService* GetMetricsService() = 0;
+ // Returns the UkmService instance that this client is associated with.
+ virtual ukm::UkmService* GetUkmService();
+
// Registers the client id with other services (e.g. crash reporting), called
// when metrics recording gets enabled.
virtual void SetMetricsClientId(const std::string& client_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698