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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: rebase Created 3 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
Index: components/ntp_snippets/content_suggestions_service.cc
diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
index 7ebd8471c5134dbfff58ab360f302dab369da5e4..08927966ac2c63fc0c0ed5ab7c39fb3e7ab76bf3 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -19,6 +19,7 @@
#include "components/favicon/core/large_icon_service.h"
#include "components/favicon_base/fallback_icon_style.h"
#include "components/favicon_base/favicon_types.h"
+#include "components/ntp_snippets/content_suggestions_metrics.h"
#include "components/ntp_snippets/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
@@ -54,6 +55,8 @@ ContentSuggestionsService::ContentSuggestionsService(
}
RestoreDismissedCategoriesFromPrefs();
+ metrics::RecordRemoteSuggestionsServiceState(
+ IsRemoteSuggestionsServiceEnabled());
}
ContentSuggestionsService::~ContentSuggestionsService() = default;

Powered by Google App Engine
This is Rietveld 408576698