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

Unified Diff: chrome/browser/android/ntp/content_suggestions_notifier_service.cc

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: Rewrite metrics and add histograms changes 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: chrome/browser/android/ntp/content_suggestions_notifier_service.cc
diff --git a/chrome/browser/android/ntp/content_suggestions_notifier_service.cc b/chrome/browser/android/ntp/content_suggestions_notifier_service.cc
index 4ec864e13df26d31bdd70aeb432e8c7c0a467f37..c58105de1f3e55e1e46db73ee1ec8d99ebd82539 100644
--- a/chrome/browser/android/ntp/content_suggestions_notifier_service.cc
+++ b/chrome/browser/android/ntp/content_suggestions_notifier_service.cc
@@ -8,6 +8,7 @@
#include "base/android/application_status_listener.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/histogram_macros.h"
#include "chrome/browser/android/ntp/content_suggestions_notification_helper.h"
#include "chrome/browser/notifications/notification.h"
#include "chrome/browser/notifications/notification_handler.h"
@@ -235,6 +236,9 @@ ContentSuggestionsNotifierService::ContentSuggestionsNotifierService(
: profile_(profile), suggestions_service_(suggestions) {
ContentSuggestionsNotificationHelper::FlushCachedMetrics();
UpdateObserverRegistrationState();
+
+ UMA_HISTOGRAM_BOOLEAN("ContentSuggestions.Preferences.Notifications",
+ IsEnabled());
}
ContentSuggestionsNotifierService::~ContentSuggestionsNotifierService() =

Powered by Google App Engine
This is Rietveld 408576698