OLD | NEW |
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 Loading... |
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 |
OLD | NEW |