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

Unified Diff: components/ntp_snippets/content_suggestions_metrics.cc

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: address comments and 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_metrics.cc
diff --git a/components/ntp_snippets/content_suggestions_metrics.cc b/components/ntp_snippets/content_suggestions_metrics.cc
index de0a01136e42051e1baa557e838d89ca277a0b48..5d2d4afe9af355040b420d72fb3d165b534e8ddd 100644
--- a/components/ntp_snippets/content_suggestions_metrics.cc
+++ b/components/ntp_snippets/content_suggestions_metrics.cc
@@ -361,5 +361,10 @@ void OnCategoryDismissed(Category category) {
HistogramCategories::COUNT);
}
+void RecordRemoteSuggestionsProviderState(bool enabled) {
+ UMA_HISTOGRAM_BOOLEAN(
+ "NewTabPage.ContentSuggestions.Preferences.RemoteSuggestions", enabled);
+}
+
} // namespace metrics
} // namespace ntp_snippets
« no previous file with comments | « components/ntp_snippets/content_suggestions_metrics.h ('k') | components/ntp_snippets/content_suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698