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

Issue 2790183002: Add UMA for the content suggestions settings (Closed)

Created:
3 years, 8 months ago by dgn
Modified:
3 years, 8 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA for the content suggestions settings Adds tracking for - User actions: + ContentSuggestions.RemoteSuggestionsPreferenceOn + ContentSuggestions.RemoteSuggestionsPreferenceOff + ContentSuggestions.NotificationsPreferenceOn + ContentSuggestions.NotificationsPreferenceOff - Histograms: + NewTabPage.ContentSuggestions.Preferences.RemoteSuggestions (Boolean) + NewTabPage.ContentSuggestions.Notifications.Actions (added one enum value) BUG=706384 Review-Url: https://codereview.chromium.org/2790183002 Cr-Commit-Position: refs/heads/master@{#463466} Committed: https://chromium.googlesource.com/chromium/src/+/65d6cd8be033362397ccd6d444cefc8a4be2fd1c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rewrite metrics and add histograms changes #

Total comments: 13

Patch Set 3 : fix tests #

Total comments: 2

Patch Set 4 : address comments #

Patch Set 5 : rebase on actions xml fix #

Patch Set 6 : rename histogram, remove dupe one #

Patch Set 7 : fix parent CL #

Total comments: 4

Patch Set 8 : address comments, rebase #

Total comments: 4

Patch Set 9 : Address comments #

Patch Set 10 : rebase #

Total comments: 2

Patch Set 11 : rename methods to remove service mention #

Total comments: 4

Patch Set 12 : address comments and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -74 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java View 1 2 3 4 5 6 7 10 chunks +46 lines, -26 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +62 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/MainPreferences.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/ntp/content_suggestions_notification_helper.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -14 lines 0 comments Download
M chrome/browser/ntp_snippets/ntp_snippets_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_metrics.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_metrics.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -8 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -6 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 74 (50 generated)
dgn
PTAL. I will add xml changes once the general tracking is approved.
3 years, 8 months ago (2017-04-04 13:40:16 UTC) #2
Michael van Ouwerkerk
looks good so far :-) https://codereview.chromium.org/2790183002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/suggestions/ContentSuggestionsUma.java File chrome/android/java/src/org/chromium/chrome/browser/suggestions/ContentSuggestionsUma.java (right): https://codereview.chromium.org/2790183002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/suggestions/ContentSuggestionsUma.java#newcode21 chrome/android/java/src/org/chromium/chrome/browser/suggestions/ContentSuggestionsUma.java:21: private static final String ...
3 years, 8 months ago (2017-04-04 14:09:48 UTC) #5
dgn
PTAL. Do you have better suggestions for naming/scoping? I'd like to avoid having NTP in ...
3 years, 8 months ago (2017-04-04 19:02:54 UTC) #9
Michael van Ouwerkerk
https://codereview.chromium.org/2790183002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java (right): https://codereview.chromium.org/2790183002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java#newcode53 chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java:53: public static Intent getIntent(Context context, @LaunchSource int source) { ...
3 years, 8 months ago (2017-04-05 10:27:42 UTC) #16
dgn
PTAL https://codereview.chromium.org/2790183002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java (right): https://codereview.chromium.org/2790183002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java#newcode53 chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java:53: public static Intent getIntent(Context context, @LaunchSource int source) ...
3 years, 8 months ago (2017-04-05 13:54:07 UTC) #20
sfiera
Drive-by: there's already a metric waiting called NewTabPage.ContentSuggestions.Notifications.OptOuts[EXPLICIT]. If we have something different, we should ...
3 years, 8 months ago (2017-04-05 14:02:47 UTC) #21
dgn
PTAL. @sfiera: I removed the new Notification histogram since I also update the one you ...
3 years, 8 months ago (2017-04-05 14:25:47 UTC) #23
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java (right): https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java#newcode81 chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java:81: public static void recordNotificationAction( nit: empty ...
3 years, 8 months ago (2017-04-05 15:47:31 UTC) #29
dgn
asvitkine@: PTAL at histograms, actions https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java (right): https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java#newcode175 chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java:175: RecordUserAction.record("ContentSuggestions.RemoteSuggestionsPreferenceOn"); On 2017/04/05 15:47:31, ...
3 years, 8 months ago (2017-04-05 16:53:32 UTC) #31
dgn
https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java (right): https://codereview.chromium.org/2790183002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java#newcode81 chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java:81: public static void recordNotificationAction( On 2017/04/05 15:47:31, Michael van ...
3 years, 8 months ago (2017-04-05 16:53:54 UTC) #32
dgn
PTAL at //components/ntp_snippets
3 years, 8 months ago (2017-04-05 16:55:31 UTC) #34
Alexei Svitkine (slow)
lgtm
3 years, 8 months ago (2017-04-05 17:10:33 UTC) #35
Marc Treib
Some nits, otherwise lg https://codereview.chromium.org/2790183002/diff/140001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2790183002/diff/140001/components/ntp_snippets/content_suggestions_service.cc#newcode56 components/ntp_snippets/content_suggestions_service.cc:56: IsRemoteSuggestionsServiceEnabled()); So far, all the ...
3 years, 8 months ago (2017-04-06 15:39:30 UTC) #40
dgn
PTAL https://codereview.chromium.org/2790183002/diff/140001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2790183002/diff/140001/components/ntp_snippets/content_suggestions_service.cc#newcode56 components/ntp_snippets/content_suggestions_service.cc:56: IsRemoteSuggestionsServiceEnabled()); On 2017/04/06 15:39:30, Marc Treib wrote: > ...
3 years, 8 months ago (2017-04-06 17:28:12 UTC) #41
Marc Treib
Sorry for the delay! C++ LGTM with one naming suggestion. https://codereview.chromium.org/2790183002/diff/180001/components/ntp_snippets/content_suggestions_metrics.h File components/ntp_snippets/content_suggestions_metrics.h (right): https://codereview.chromium.org/2790183002/diff/180001/components/ntp_snippets/content_suggestions_metrics.h#newcode61 ...
3 years, 8 months ago (2017-04-07 09:00:34 UTC) #53
dgn
Thanks! https://codereview.chromium.org/2790183002/diff/180001/components/ntp_snippets/content_suggestions_metrics.h File components/ntp_snippets/content_suggestions_metrics.h (right): https://codereview.chromium.org/2790183002/diff/180001/components/ntp_snippets/content_suggestions_metrics.h#newcode61 components/ntp_snippets/content_suggestions_metrics.h:61: void RecordRemoteSuggestionsServiceState(bool enabled); On 2017/04/07 09:00:34, Marc Treib ...
3 years, 8 months ago (2017-04-07 10:24:55 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790183002/200001
3 years, 8 months ago (2017-04-07 10:25:20 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405296)
3 years, 8 months ago (2017-04-07 10:34:47 UTC) #59
dgn
bauerb@chromium.org: c/a/.../preferences
3 years, 8 months ago (2017-04-10 04:41:16 UTC) #61
dgn
On 2017/04/10 04:41:16, dgn wrote: > mailto:bauerb@chromium.org: c/a/.../preferences I'm missing LGTMs for a couple files, ...
3 years, 8 months ago (2017-04-10 04:41:44 UTC) #62
Bernhard Bauer
LGTM https://codereview.chromium.org/2790183002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java (right): https://codereview.chromium.org/2790183002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java#newcode57 chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java:57: * Creates an intent for launching content suggestions ...
3 years, 8 months ago (2017-04-10 23:16:03 UTC) #67
dgn
Thanks! https://codereview.chromium.org/2790183002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java (right): https://codereview.chromium.org/2790183002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java#newcode57 chrome/android/java/src/org/chromium/chrome/browser/preferences/ContentSuggestionsPreferences.java:57: * Creates an intent for launching content suggestions ...
3 years, 8 months ago (2017-04-10 23:31:29 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790183002/220001
3 years, 8 months ago (2017-04-10 23:33:08 UTC) #71
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 00:37:44 UTC) #74
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/65d6cd8be033362397ccd6d444ce...

Powered by Google App Engine
This is Rietveld 408576698