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

Side by Side Diff: chrome/browser/notifications/sync_notifier/synced_notification_stats.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 - remove actions array and fix bug. 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/notifications/sync_notifier/synced_notification_stats.h "
6
7 #include <string>
8
9 #include "base/metrics/histogram.h"
10 #include "content/public/browser/user_metrics.h"
11
12 namespace notifier {
13
14 SyncedNotificationStats::SyncedNotificationStats() {}
15
16 SyncedNotificationStats::SyncedNotificationStats(
17 const std::string& id) : id_(id) {}
18
19 SyncedNotificationStats::~SyncedNotificationStats() {}
20
21 void SyncedNotificationStats::CollectAction(
22 SyncedNotificationActionType type) {
23 DCHECK(!id_.empty());
24
25 UMA_HISTOGRAM_ENUMERATION("SyncedNotifications.Actions",
26 type,
27 SYNCED_NOTIFICATION_ACTION_COUNT);
28 }
29
30 } // namespace notifier
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698