OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/ntp_snippets/ntp_snippets_metrics.h" |
| 6 |
| 7 #include "base/metrics/histogram_macros.h" |
| 8 |
| 9 namespace { |
| 10 |
| 11 const char kContentSuggestionsNotificationImpressions[] = |
| 12 "NewTabPage.ContentSuggestions.Notifications.Impressions"; |
| 13 const char kContentSuggestionsNotificationActions[] = |
| 14 "NewTabPage.ContentSuggestions.Notifications.Actions"; |
| 15 const char kContentSuggestionsNotificationOptOuts[] = |
| 16 "NewTabPage.ContentSuggestions.Notifications.AutoOptOuts"; |
| 17 |
| 18 } // namespace |
| 19 |
| 20 void RecordContentSuggestionsNotificationImpression( |
| 21 ContentSuggestionsNotificationImpression what) { |
| 22 UMA_HISTOGRAM_ENUMERATION(kContentSuggestionsNotificationImpressions, what, |
| 23 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION); |
| 24 } |
| 25 |
| 26 void RecordContentSuggestionsNotificationAction( |
| 27 ContentSuggestionsNotificationAction what) { |
| 28 UMA_HISTOGRAM_ENUMERATION(kContentSuggestionsNotificationActions, what, |
| 29 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION); |
| 30 } |
| 31 |
| 32 void RecordContentSuggestionsNotificationOptOut( |
| 33 ContentSuggestionsNotificationOptOut what) { |
| 34 UMA_HISTOGRAM_ENUMERATION(kContentSuggestionsNotificationOptOuts, what, |
| 35 MAX_CONTENT_SUGGESTIONS_NOTIFICATION_OPT_OUT); |
| 36 } |
OLD | NEW |