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

Issue 2605353004: [NTP::SectionOrder] Preserve added categories on ClearHistory. (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] Preserve added categories on ClearHistory. Before this CL all categories, which were added using AppendCategoryIfNecessary, were removed on ClearHistory. Since it is not required to reregister them, there were simply not shown at all. After this CL they are preserved (sorted by id). BUG=675953 Committed: https://crrev.com/6343b2cefff8bce62994da5fc6b6156c7d6409a6 Cr-Commit-Position: refs/heads/master@{#441336}

Patch Set 1 #

Patch Set 2 : rebase. #

Patch Set 3 : proper time arguments in tests. #

Total comments: 4

Patch Set 4 : jkrcal@ nit. #

Patch Set 5 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -2 lines) Patch
M components/ntp_snippets/category_rankers/click_based_category_ranker.cc View 1 2 3 4 1 chunk +26 lines, -2 lines 0 comments Download
M components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
vitaliii
Hi jkrcal@, PTAL.
3 years, 11 months ago (2017-01-03 15:27:08 UTC) #10
jkrcal
lgtm (with a nit) https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode100 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:100: } nit: I find this ...
3 years, 11 months ago (2017-01-03 15:57:16 UTC) #11
vitaliii
Hi jkrcal@, I partially addressed your nit, PTAL. https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode100 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:100: } ...
3 years, 11 months ago (2017-01-03 16:12:28 UTC) #12
jkrcal
still lgtm https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode100 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:100: } On 2017/01/03 16:12:28, vitaliii wrote: > ...
3 years, 11 months ago (2017-01-03 16:32:36 UTC) #15
vitaliii
No need to look. https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2605353004/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode100 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:100: } On 2017/01/03 16:32:36, jkrcal ...
3 years, 11 months ago (2017-01-03 16:44:37 UTC) #16
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/2605353004/80001
3 years, 11 months ago (2017-01-03 16:44:50 UTC) #19
commit-bot: I haz the power
Failed to apply patch for components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-03 17:10:21 UTC) #21
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/2605353004/90001
3 years, 11 months ago (2017-01-04 07:11:02 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:90001)
3 years, 11 months ago (2017-01-04 07:57:46 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 07:59:11 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6343b2cefff8bce62994da5fc6b6156c7d6409a6
Cr-Commit-Position: refs/heads/master@{#441336}

Powered by Google App Engine
This is Rietveld 408576698