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

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

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/google_now_notification_stats_collector.h " 5 #include "chrome/browser/notifications/google_now_notification_stats_collector.h "
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/sparse_histogram.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/notifications/extension_welcome_notification.h" 11 #include "chrome/browser/notifications/extension_welcome_notification.h"
12 #include "chrome/browser/notifications/notification.h" 12 #include "chrome/browser/notifications/notification.h"
13 #include "chrome/browser/notifications/notification_ui_manager.h" 13 #include "chrome/browser/notifications/notification_ui_manager.h"
14 #include "content/public/browser/user_metrics.h" 14 #include "content/public/browser/user_metrics.h"
15 #include "ui/message_center/notification.h" 15 #include "ui/message_center/notification.h"
16 16
17 namespace { 17 namespace {
18 const int kNotificationsMaxCount = 20; 18 const int kNotificationsMaxCount = 20;
19 } 19 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int google_now_notification_count = 0; 73 int google_now_notification_count = 0;
74 for (Notifications::iterator iter = visible_notifications.begin(); 74 for (Notifications::iterator iter = visible_notifications.begin();
75 iter != visible_notifications.end(); 75 iter != visible_notifications.end();
76 ++iter) { 76 ++iter) {
77 if ((*iter)->notifier_id().id == 77 if ((*iter)->notifier_id().id ==
78 ExtensionWelcomeNotification::kChromeNowExtensionID) 78 ExtensionWelcomeNotification::kChromeNowExtensionID)
79 google_now_notification_count++; 79 google_now_notification_count++;
80 } 80 }
81 return google_now_notification_count; 81 return google_now_notification_count;
82 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698