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 <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
10 #include "content/public/browser/user_metrics.h" | 12 #include "content/public/browser/user_metrics.h" |
11 #include "ui/message_center/message_center.h" | 13 #include "ui/message_center/message_center.h" |
12 | 14 |
13 MessageCenterStatsCollector::NotificationStats::NotificationStats() {} | 15 MessageCenterStatsCollector::NotificationStats::NotificationStats() {} |
14 | 16 |
15 MessageCenterStatsCollector::NotificationStats::NotificationStats( | 17 MessageCenterStatsCollector::NotificationStats::NotificationStats( |
16 const std::string& id) : id_(id) { | 18 const std::string& id) : id_(id) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 143 |
142 void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) { | 144 void MessageCenterStatsCollector::OnQuietModeChanged(bool in_quiet_mode) { |
143 if (in_quiet_mode) { | 145 if (in_quiet_mode) { |
144 content::RecordAction( | 146 content::RecordAction( |
145 base::UserMetricsAction("Notifications.Mute")); | 147 base::UserMetricsAction("Notifications.Mute")); |
146 } else { | 148 } else { |
147 content::RecordAction( | 149 content::RecordAction( |
148 base::UserMetricsAction("Notifications.Unmute")); | 150 base::UserMetricsAction("Notifications.Unmute")); |
149 } | 151 } |
150 } | 152 } |
OLD | NEW |