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

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: Synced Notifications UMA - fix histograms.xml formatting 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
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
138 content::RecordAction(
139 content::UserMetricsAction("Notifications.Mute"));
140 } else {
141 content::RecordAction(
142 content::UserMetricsAction("Notifications.Unmute"));
143 }
137 } 144 }
138 145
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698