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

Issue 2285633004: [TTS] Record CTR by week and 28-day intervals. (Closed)

Created:
4 years, 3 months ago by Donn Denman
Modified:
4 years, 2 months ago
Reviewers:
Ted C, Theresa, rkaplow
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org, Theresa, marq (ping after 24h)
Base URL:
https://chromium.googlesource.com/chromium/src.git@ctr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Record CTR by week and 28-day intervals. Adds recording of CTR by user for Contextual Search. Updates the TapSuppressionHeuristics to support destroy() so native destructors can be called. Updates ContextualSearchSelectionController to call destroy() on the heuristics. Adds 4 new histograms for Impressions and CTR by week and 28day interval. BUG=609668 Committed: https://crrev.com/1d909b62c4c6103d5f513500e054d1a95a1f8277 Cr-Commit-Position: refs/heads/master@{#422200}

Patch Set 1 #

Patch Set 2 : Added histograms.xml, updated comments and minor code cleanup. #

Total comments: 2

Patch Set 3 : Added caching to recording of CTR to minimize multiple writes to UMA. #

Total comments: 4

Patch Set 4 : Changed histogram logging to the percent-specific call. #

Total comments: 4

Patch Set 5 : Rebased to use the refactored version of the patch set this depends upon. #

Patch Set 6 : Added recording of impressions and getCurrentWeekNumber to invalidate the caching. #

Total comments: 12

Patch Set 7 : Renamed all CTR classes and methods to "Ctr", addressed Theresa's other comments. #

Patch Set 8 : Updated the histogram names from CTR to Ctr. #

Total comments: 4

Patch Set 9 : Reworked the cache to use a stored preference instead of session static data. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -59 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java View 1 2 3 4 5 6 7 8 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/TapSuppressionHeuristics.java View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -2 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/contextualsearch/ctr_suppression.h View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/android/contextualsearch/ctr_suppression.cc View 1 2 3 4 5 6 7 1 chunk +109 lines, -0 lines 0 comments Download
M components/contextual_search/browser/ctr_aggregator.h View 1 2 3 4 5 6 6 chunks +19 lines, -15 lines 0 comments Download
M components/contextual_search/browser/ctr_aggregator.cc View 1 2 3 4 5 6 7 chunks +17 lines, -13 lines 0 comments Download
M components/contextual_search/browser/ctr_aggregator_unittest.cc View 1 2 3 4 5 6 4 chunks +25 lines, -25 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
Donn Denman
Theresa and Mark, just cc-ing you on this patch which uses the CTR aggregator so ...
4 years, 3 months ago (2016-08-26 16:49:23 UTC) #1
Theresa
https://codereview.chromium.org/2285633004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java (right): https://codereview.chromium.org/2285633004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java#newcode1146 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchUma.java:1146: public static void logPreviousWeekCTR(float previousWeekCTR) { Should we do ...
4 years, 3 months ago (2016-08-26 23:32:20 UTC) #3
Donn Denman
Theresa, I think this is ready for a real review now. Also added the histograms ...
4 years, 3 months ago (2016-08-29 23:07:25 UTC) #5
Theresa
A couple of comments, will do a more thorough review when the native patch lands ...
4 years, 3 months ago (2016-08-29 23:52:14 UTC) #6
Donn Denman
Thanks for the review, PTAL when not too busy. https://codereview.chromium.org/2285633004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java (right): https://codereview.chromium.org/2285633004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java:67: ...
4 years, 3 months ago (2016-08-30 00:15:54 UTC) #7
marq (ping after 24h)
https://codereview.chromium.org/2285633004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java (right): https://codereview.chromium.org/2285633004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java:61: protected void logConditionState() { Is there some reason this ...
4 years, 3 months ago (2016-08-30 08:38:13 UTC) #9
Donn Denman
Thanks for the comments Mark! https://codereview.chromium.org/2285633004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java (right): https://codereview.chromium.org/2285633004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java:61: protected void logConditionState() { ...
4 years, 3 months ago (2016-08-30 16:49:24 UTC) #10
Donn Denman
FYI new patch uploaded. I'll ask you to PTAL when the base patch lands.
4 years, 3 months ago (2016-08-31 04:37:54 UTC) #11
Donn Denman
Theresa, this is ready for a review now (no rush).
4 years, 2 months ago (2016-09-26 23:34:02 UTC) #14
Theresa
https://codereview.chromium.org/2285633004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java (right): https://codereview.chromium.org/2285633004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java#newcode21 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CTRRecorder.java:21: public class CTRRecorder extends ContextualSearchHeuristic { Eventually this will ...
4 years, 2 months ago (2016-09-27 20:53:57 UTC) #15
Donn Denman
Theresa, PTAL: Argh! I realized during the renaming that using "CTR" instead of "Ctr" is ...
4 years, 2 months ago (2016-09-28 00:38:44 UTC) #16
Donn Denman
Theresa, no rush on this review, can easily wait till tomorrow.
4 years, 2 months ago (2016-09-28 00:39:52 UTC) #17
Theresa
lgtm
4 years, 2 months ago (2016-09-28 16:24:15 UTC) #18
Donn Denman
+tedchoc@ for chrome_jni_registrar.cc +rkaplow@ for histograms.xml
4 years, 2 months ago (2016-09-28 17:28:57 UTC) #22
Ted C
On 2016/09/28 17:28:57, Donn Denman wrote: > +tedchoc@ for chrome_jni_registrar.cc > +rkaplow@ for histograms.xml chrome_jni_registrar.cc ...
4 years, 2 months ago (2016-09-28 20:04:31 UTC) #25
rkaplow
lgtm https://codereview.chromium.org/2285633004/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2285633004/diff/140001/tools/metrics/histograms/histograms.xml#newcode53813 tools/metrics/histograms/histograms.xml:53813: + percentage. May be logged multiple times for ...
4 years, 2 months ago (2016-09-28 21:16:03 UTC) #26
Theresa
https://codereview.chromium.org/2285633004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java (right): https://codereview.chromium.org/2285633004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java#newcode15 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java:15: * TODO(donnd): add suppression logic. I had an additional ...
4 years, 2 months ago (2016-09-29 04:07:37 UTC) #27
Donn Denman
Theresa, would you mind double-checking my work in the latest patch set? Thanks everyone! https://codereview.chromium.org/2285633004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java ...
4 years, 2 months ago (2016-09-30 16:23:19 UTC) #32
Theresa
lgtm
4 years, 2 months ago (2016-09-30 19:23:17 UTC) #33
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/2285633004/160001
4 years, 2 months ago (2016-09-30 20:08:57 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-09-30 20:15:20 UTC) #38
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 20:18:03 UTC) #40
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1d909b62c4c6103d5f513500e054d1a95a1f8277
Cr-Commit-Position: refs/heads/master@{#422200}

Powered by Google App Engine
This is Rietveld 408576698