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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/message_center_stats_collector.h" 5 #include "chrome/browser/notifications/message_center_stats_collector.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "content/public/browser/user_metrics.h" 10 #include "content/public/browser/user_metrics.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 content::UserMetricsAction("Notifications.ShowMessageCenter")); 127 content::UserMetricsAction("Notifications.ShowMessageCenter"));
128 break; 128 break;
129 case message_center::VISIBILITY_SETTINGS: 129 case message_center::VISIBILITY_SETTINGS:
130 content::RecordAction( 130 content::RecordAction(
131 content::UserMetricsAction("Notifications.ShowSettings")); 131 content::UserMetricsAction("Notifications.ShowSettings"));
132 break; 132 break;
133 } 133 }
134 } 134 }
135 135
136 void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) { 136 void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) {
137 if (in_quiet_mode)
Alexei Svitkine (slow) 2013/10/11 14:50:12 Nit: This needs {}.
Pete Williamson 2013/10/14 03:46:07 Done.
138 content::RecordAction(
139 content::UserMetricsAction("Notification.Mute"));
Alexei Svitkine (slow) 2013/10/11 14:50:12 Please run tools/metrics/extract_actions.py and ad
Pete Williamson 2013/10/14 03:46:07 Done, though the tool had some errors (I sent mail
140 else
141 content::RecordAction(
142 content::UserMetricsAction("Notification.Unmute"));
137 } 143 }
138 144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698