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

Side by Side Diff: chrome/browser/notifications/message_center_stats_collector.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 <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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/message_center_stats_collector.h ('k') | chrome/browser/notifications/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698