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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: address comments, 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 f808d74e35c9d830ea6193e2b90aa6d89428402a..8cc0a1b3c2481949f637976e1274e4ed6da7353c 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/default_clock.h"
@@ -49,6 +50,10 @@ ContentSuggestionsService::ContentSuggestionsService(
}
RestoreDismissedCategoriesFromPrefs();
+
+ UMA_HISTOGRAM_BOOLEAN(
+ "NewTabPage.ContentSuggestions.Preferences.RemoteSuggestions",
+ IsRemoteSuggestionsServiceEnabled());
Marc Treib 2017/04/06 15:39:30 So far, all the metrics recording code lives in th
dgn 2017/04/06 17:28:12 Done.
}
ContentSuggestionsService::~ContentSuggestionsService() = default;

Powered by Google App Engine
This is Rietveld 408576698