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

Issue 2616813003: [NTP::SectionOrder] Ensure decreasing clicks when category dismissed. (Closed)

Created:
3 years, 11 months ago by vitaliii
Modified:
3 years, 11 months ago
Reviewers:
jkrcal
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::SectionOrder] Ensure decreasing clicks when category dismissed. Ensure that dismissing a category cannot increase its clicks and use the previous category clicks, not the next one. Due to PassingMargin, it is possible that lower categories have more clicks. Before this CL, this could lead to dismissed category clicks increase, which was not intended. Now we take mininum of new and old clicks. In addition to this before this CL, click count was reduced based on the next category in the list, after this CL, on the previous one. BUG=678586 Review-Url: https://codereview.chromium.org/2616813003 Cr-Commit-Position: refs/heads/master@{#443237} Committed: https://chromium.googlesource.com/chromium/src/+/3af30d62df054e880fa5e0fd285ddbac847325f5

Patch Set 1 #

Total comments: 5

Patch Set 2 : clean rebase. #

Patch Set 3 : jkrcal@ comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M components/ntp_snippets/category_rankers/click_based_category_ranker.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
vitaliii
[small CL] Hi jkrcal@, Could you have a look please?
3 years, 11 months ago (2017-01-05 09:25:52 UTC) #4
jkrcal
I am not sure this is a real issue :) https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (left): https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#oldcode201 ...
3 years, 11 months ago (2017-01-05 10:37:35 UTC) #7
vitaliii
Hi jkrcal@, PTAL. https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (left): https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#oldcode201 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:201: current->clicks = std::max(next_clicks - kPassingMargin, 0); ...
3 years, 11 months ago (2017-01-05 12:13:43 UTC) #8
tschumann
drive-by https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (left): https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#oldcode201 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:201: current->clicks = std::max(next_clicks - kPassingMargin, 0); On 2017/01/05 ...
3 years, 11 months ago (2017-01-05 12:25:40 UTC) #9
jkrcal
https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (left): https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#oldcode201 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:201: current->clicks = std::max(next_clicks - kPassingMargin, 0); On 2017/01/05 12:25:40, ...
3 years, 11 months ago (2017-01-05 12:39:55 UTC) #10
vitaliii
Hi jkrcal@, PTAL. https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (left): https://codereview.chromium.org/2616813003/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#oldcode201 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:201: current->clicks = std::max(next_clicks - kPassingMargin, 0); ...
3 years, 11 months ago (2017-01-12 15:00:51 UTC) #16
jkrcal
lgtm
3 years, 11 months ago (2017-01-12 15:05:14 UTC) #20
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/2616813003/100001
3 years, 11 months ago (2017-01-12 15:07:18 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 15:45:01 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/3af30d62df054e880fa5e0fd285d...

Powered by Google App Engine
This is Rietveld 408576698