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

Unified Diff: chrome/browser/notifications/message_center_stats_collector.cc

Issue 26943002: Add UMA histogram data representing the Synced Notifications feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Notifications UMA - remove stats class Created 7 years, 2 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/notifications/message_center_stats_collector.cc
diff --git a/chrome/browser/notifications/message_center_stats_collector.cc b/chrome/browser/notifications/message_center_stats_collector.cc
index f0257a94235cf2b6791f799bc47b8f687df646df..3279728b7a1ba5aadb38ce020fb2c1d9898dcab9 100644
--- a/chrome/browser/notifications/message_center_stats_collector.cc
+++ b/chrome/browser/notifications/message_center_stats_collector.cc
@@ -134,5 +134,12 @@ void MessageCenterStatsCollector::OnCenterVisibilityChanged(
}
void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) {
+ if (in_quiet_mode) {
+ content::RecordAction(
+ content::UserMetricsAction("Notifications.Mute"));
+ } else {
+ content::RecordAction(
+ content::UserMetricsAction("Notifications.Unmute"));
+ }
}

Powered by Google App Engine
This is Rietveld 408576698