Index: chrome/browser/notifications/sync_notifier/synced_notification_stats.cc |
diff --git a/chrome/browser/notifications/sync_notifier/synced_notification_stats.cc b/chrome/browser/notifications/sync_notifier/synced_notification_stats.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6fed8813594b3c07e4478d2280ab501c95b965e5 |
--- /dev/null |
+++ b/chrome/browser/notifications/sync_notifier/synced_notification_stats.cc |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/notifications/sync_notifier/synced_notification_stats.h" |
+ |
+#include <string> |
+ |
+#include "base/metrics/histogram.h" |
+#include "content/public/browser/user_metrics.h" |
+ |
+namespace notifier { |
+ |
+SyncedNotificationStats::SyncedNotificationStats() {} |
+ |
+SyncedNotificationStats::SyncedNotificationStats( |
+ const std::string& id) : id_(id) {} |
+ |
+SyncedNotificationStats::~SyncedNotificationStats() {} |
+ |
+void SyncedNotificationStats::CollectAction( |
+ SyncedNotificationActionType type) { |
+ DCHECK(!id_.empty()); |
+ |
+ UMA_HISTOGRAM_ENUMERATION("SyncedNotifications.Actions", |
+ type, |
+ SYNCED_NOTIFICATION_ACTION_COUNT); |
+} |
+ |
+} // namespace notifier |