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

Issue 2277213003: [TTS] Add aggregation of CTR metrics to the CS component. (Closed)

Created:
4 years, 3 months ago by Donn Denman
Modified:
4 years, 3 months ago
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Add aggregation of CTR metrics to the CS component. Adds a new class that knows how to aggregate impressions and clicks over one-week and 28-day intervals. This will be used by Contextual Search to record impressions and CTR by user to use as signals for Tap triggering. BUG=609668 Committed: https://crrev.com/ce321e2acadf1b001651d2e41cec0d5ed96e50ed Cr-Commit-Position: refs/heads/master@{#417698}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Using the cache now, renamed NativeIntStorage DeviceIntStorage. #

Patch Set 3 : Just changed some test names. #

Patch Set 4 : Just added comments to device_int_storage.h. #

Total comments: 12

Patch Set 5 : Major refactoring to separate storage implementation details from the aggregator, as suggested by m… #

Patch Set 6 : Removed the cache from WeeklyActivityStorage. #

Total comments: 4

Patch Set 7 : Renamed method names in WeeklyActivityStorage ending in "Activity", and elaborated why initing shou… #

Patch Set 8 : Updated components/OWNERS to forward Contextual Search to its owners. #

Patch Set 9 : Just a rebase and removal of gyp files no longer needed. #

Patch Set 10 : Just added a dependency for tests to components/contextual_search/BUILD.gn. #

Patch Set 11 : Just a rebase. #

Patch Set 12 : Just a rebase. #

Total comments: 2

Patch Set 13 : Moved the build rule to the non-iOS section for the new unittest. #

Patch Set 14 : Just added an include file to hopefully fix the windows build. #

Patch Set 15 : Updated the unittest to cast expected results to float since windows seems to default to double. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -0 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/contextual_search/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -0 lines 0 comments Download
A components/contextual_search/browser/ctr_aggregator.h View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
A components/contextual_search/browser/ctr_aggregator.cc View 1 2 3 4 5 6 1 chunk +114 lines, -0 lines 0 comments Download
A components/contextual_search/browser/ctr_aggregator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +138 lines, -0 lines 0 comments Download
A components/contextual_search/browser/weekly_activity_storage.h View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
A components/contextual_search/browser/weekly_activity_storage.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +129 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (23 generated)
Donn Denman
Theresa and Mark, This is the first addition to the CS component designed to be ...
4 years, 3 months ago (2016-08-26 16:26:25 UTC) #2
Donn Denman
On 2016/08/26 16:26:25, Donn Denman wrote: > Theresa and Mark, > > This is the ...
4 years, 3 months ago (2016-08-26 17:16:49 UTC) #3
Theresa
https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc File components/contextual_search/browser/ctr_aggregator.cc (right): https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc#newcode26 components/contextual_search/browser/ctr_aggregator.cc:26: const int kReasonableMinWeek = 2000; Why 2000? https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc#newcode41 components/contextual_search/browser/ctr_aggregator.cc:41: ...
4 years, 3 months ago (2016-08-26 23:32:08 UTC) #4
Donn Denman
Theresa, PTAL. Mark, do you want to review the overall structure of this code to ...
4 years, 3 months ago (2016-08-29 22:58:06 UTC) #5
Theresa
lgtm https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc File components/contextual_search/browser/ctr_aggregator.cc (right): https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc#newcode26 components/contextual_search/browser/ctr_aggregator.cc:26: const int kReasonableMinWeek = 2000; On 2016/08/29 22:58:06, ...
4 years, 3 months ago (2016-08-29 23:57:34 UTC) #6
Theresa
https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc File components/contextual_search/browser/ctr_aggregator.cc (right): https://codereview.chromium.org/2277213003/diff/1/components/contextual_search/browser/ctr_aggregator.cc#newcode80 components/contextual_search/browser/ctr_aggregator.cc:80: return (week_number_ - first_week_written >= 4); On 2016/08/29 23:57:34, ...
4 years, 3 months ago (2016-08-29 23:57:57 UTC) #7
marq (ping after 24h)
On 2016/08/29 22:58:06, Donn Denman wrote: > Theresa, PTAL. > > Mark, do you want ...
4 years, 3 months ago (2016-08-30 08:00:12 UTC) #8
marq (ping after 24h)
At a high level, this seems fine for iOS, although without yet seeing the details ...
4 years, 3 months ago (2016-08-30 08:30:36 UTC) #9
Donn Denman
Mark and Theresa, I separated the storage from the aggregator, and I do think the ...
4 years, 3 months ago (2016-08-31 04:35:21 UTC) #10
chromium-reviews
Mark, this is ready for another look from you, however brief. Thanks! On Aug 30, ...
4 years, 3 months ago (2016-09-02 05:49:26 UTC) #11
marq (ping after 24h)
Gave it a quick pass, overall LGTM and this seems like a much cleaner design. ...
4 years, 3 months ago (2016-09-02 13:09:45 UTC) #12
Theresa
still lgtm % 1 comment on method naming https://codereview.chromium.org/2277213003/diff/100001/components/contextual_search/browser/weekly_activity_storage.h File components/contextual_search/browser/weekly_activity_storage.h (right): https://codereview.chromium.org/2277213003/diff/100001/components/contextual_search/browser/weekly_activity_storage.h#newcode43 components/contextual_search/browser/weekly_activity_storage.h:43: bool ...
4 years, 3 months ago (2016-09-02 16:25:29 UTC) #13
Donn Denman
Thanks for the multiple reviews! https://chromiumcodereview.appspot.com/2277213003/diff/100001/components/contextual_search/browser/weekly_activity_storage.h File components/contextual_search/browser/weekly_activity_storage.h (right): https://chromiumcodereview.appspot.com/2277213003/diff/100001/components/contextual_search/browser/weekly_activity_storage.h#newcode40 components/contextual_search/browser/weekly_activity_storage.h:40: void InitActivity(int week_number); On ...
4 years, 3 months ago (2016-09-02 22:48:00 UTC) #14
Donn Denman
Colin, PTAL at components/BUILD.gn, components/contextual_search.gypi, and components/OWNERS. I decided to update components/OWNERS, even though you ...
4 years, 3 months ago (2016-09-02 23:08:23 UTC) #16
blundell
On 2016/09/02 23:08:23, Donn Denman wrote: > Colin, PTAL at components/BUILD.gn, components/contextual_search.gypi, and > components/OWNERS. ...
4 years, 3 months ago (2016-09-05 08:13:46 UTC) #17
Donn Denman
Colin, Thanks for the explanation and the review!
4 years, 3 months ago (2016-09-06 17:42:55 UTC) #18
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/2277213003/140001
4 years, 3 months ago (2016-09-06 17:43:44 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/124126) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-06 17:47:32 UTC) #23
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/2277213003/160001
4 years, 3 months ago (2016-09-08 19:32:12 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/125827) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 3 months ago (2016-09-08 19:36:44 UTC) #28
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/2277213003/180001
4 years, 3 months ago (2016-09-08 19:50:12 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/66242)
4 years, 3 months ago (2016-09-08 19:57:43 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/2277213003/220001
4 years, 3 months ago (2016-09-09 02:47:05 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/66401)
4 years, 3 months ago (2016-09-09 02:54:43 UTC) #38
blundell
https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUILD.gn File components/BUILD.gn (right): https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUILD.gn#newcode76 components/BUILD.gn:76: "//components/contextual_search:unit_tests", I think that moving this to the !iOS ...
4 years, 3 months ago (2016-09-09 07:41:44 UTC) #39
Donn Denman
Colin, Thanks for noticing my problem and suggesting a fix! https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUILD.gn File components/BUILD.gn (right): https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUILD.gn#newcode76 ...
4 years, 3 months ago (2016-09-09 17:43:05 UTC) #40
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/2277213003/240001
4 years, 3 months ago (2016-09-09 17:44:11 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/290611)
4 years, 3 months ago (2016-09-09 18:13:42 UTC) #45
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/2277213003/260001
4 years, 3 months ago (2016-09-09 18:32:27 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/290655)
4 years, 3 months ago (2016-09-09 19:07:47 UTC) #50
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/2277213003/280001
4 years, 3 months ago (2016-09-09 19:30:28 UTC) #53
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 3 months ago (2016-09-09 20:53:31 UTC) #54
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/ce321e2acadf1b001651d2e41cec0d5ed96e50ed Cr-Commit-Position: refs/heads/master@{#417698}
4 years, 3 months ago (2016-09-09 20:56:16 UTC) #56
blundell
4 years, 3 months ago (2016-09-12 13:34:39 UTC) #57
Message was sent while issue was closed.
On 2016/09/09 17:43:05, Donn Denman wrote:
> Colin, Thanks for noticing my problem and suggesting a fix!
> 
>
https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUIL...
> File components/BUILD.gn (right):
> 
>
https://chromiumcodereview.appspot.com/2277213003/diff/220001/components/BUIL...
> components/BUILD.gn:76: "//components/contextual_search:unit_tests",
> On 2016/09/09 07:41:44, blundell wrote:
> > I think that moving this to the !iOS section should solve the problem you're
> > seeing. (There's also a larger question of whether you'll eventually want
this
> > feature to be shared with iOS, which would require reworking).
> 
> I had though it would work for iOS but I guess we're bringing in some Blink
> dependency.

If intended for sharing with iOS, the component will likely need to be made a
layered component:

https://www.chromium.org/developers/design-documents/layered-components-design

Powered by Google App Engine
This is Rietveld 408576698