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

Side by Side Diff: chrome/browser/ntp_snippets/ntp_snippets_metrics.cc

Issue 2626643002: Stop showing notifications if they're ignored (Closed)
Patch Set: String.equals() Created 3 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
« no previous file with comments | « chrome/browser/ntp_snippets/ntp_snippets_metrics.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/ntp_snippets_metrics.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698