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

Issue 2581163004: [NTP::SectionOrder] Propagate new order through ContentSuggestionsService. (Closed)

Created:
4 years ago by vitaliii
Modified:
4 years ago
Reviewers:
Marc Treib, tschumann
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::SectionOrder] Propagate new order through ContentSuggestionsService. Previously, |GetCategories()| did not update the order and, therefore, order changes could not be propagated to UI. After this CL, |GetCategories()| refreshes the order before returning +1 test. BUG=673743 Committed: https://crrev.com/8b5ab2844d4cb92e7abfefceea86e83e18f7da28 Cr-Commit-Position: refs/heads/master@{#439766}

Patch Set 1 #

Total comments: 6

Patch Set 2 : tschumann@ comments. #

Total comments: 4

Patch Set 3 : treib@ comments. #

Total comments: 8

Patch Set 4 : rebase. #

Patch Set 5 : treib@ nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -26 lines) Patch
M components/ntp_snippets/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A components/ntp_snippets/category_rankers/fake_category_ranker.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A components/ntp_snippets/category_rankers/fake_category_ranker.cc View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 3 4 3 chunks +6 lines, -8 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 chunks +9 lines, -8 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 3 4 12 chunks +48 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 52 (39 generated)
vitaliii
Hi treib@, could you have a look?
4 years ago (2016-12-19 08:41:44 UTC) #18
vitaliii
Hi treib@, Could you have a look?
4 years ago (2016-12-19 08:44:37 UTC) #21
tschumann
nice! just some naming and comment nits. https://codereview.chromium.org/2581163004/diff/60001/components/ntp_snippets/content_suggestions_service.h File components/ntp_snippets/content_suggestions_service.h (right): https://codereview.chromium.org/2581163004/diff/60001/components/ntp_snippets/content_suggestions_service.h#newcode105 components/ntp_snippets/content_suggestions_service.h:105: // from ...
4 years ago (2016-12-19 09:06:38 UTC) #22
vitaliii
I addressed tschumann@ comments, PTAL. https://codereview.chromium.org/2581163004/diff/60001/components/ntp_snippets/content_suggestions_service.h File components/ntp_snippets/content_suggestions_service.h (right): https://codereview.chromium.org/2581163004/diff/60001/components/ntp_snippets/content_suggestions_service.h#newcode105 components/ntp_snippets/content_suggestions_service.h:105: // from |category_ranker_| immediately. ...
4 years ago (2016-12-19 11:31:39 UTC) #28
Marc Treib
https://codereview.chromium.org/2581163004/diff/80001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2581163004/diff/80001/components/ntp_snippets/content_suggestions_service.cc#newcode397 components/ntp_snippets/content_suggestions_service.cc:397: SortCategories(); I think this call isn't required anymore. https://codereview.chromium.org/2581163004/diff/80001/components/ntp_snippets/content_suggestions_service.h ...
4 years ago (2016-12-19 13:22:46 UTC) #31
vitaliii
Hi, PTAL. https://codereview.chromium.org/2581163004/diff/80001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2581163004/diff/80001/components/ntp_snippets/content_suggestions_service.cc#newcode397 components/ntp_snippets/content_suggestions_service.cc:397: SortCategories(); On 2016/12/19 13:22:46, Marc Treib (OOO ...
4 years ago (2016-12-19 15:28:59 UTC) #34
Marc Treib
lgtm LGTM with some nits, and one testing suggestion. https://codereview.chromium.org/2581163004/diff/100001/components/ntp_snippets/content_suggestions_service.h File components/ntp_snippets/content_suggestions_service.h (right): https://codereview.chromium.org/2581163004/diff/100001/components/ntp_snippets/content_suggestions_service.h#newcode286 components/ntp_snippets/content_suggestions_service.h:286: ...
4 years ago (2016-12-19 15:44:41 UTC) #35
vitaliii
Hi treib@, I addressed your nits, no need to look. https://codereview.chromium.org/2581163004/diff/100001/components/ntp_snippets/content_suggestions_service.h File components/ntp_snippets/content_suggestions_service.h (right): https://codereview.chromium.org/2581163004/diff/100001/components/ntp_snippets/content_suggestions_service.h#newcode286 ...
4 years ago (2016-12-20 08:49:37 UTC) #38
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/2581163004/140001
4 years ago (2016-12-20 08:50:50 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: android_cronet on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_cronet/builds/55329) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-20 08:54:20 UTC) #43
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/2581163004/160001
4 years ago (2016-12-20 08:57:22 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years ago (2016-12-20 11:07:00 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-20 11:08:53 UTC) #52
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8b5ab2844d4cb92e7abfefceea86e83e18f7da28
Cr-Commit-Position: refs/heads/master@{#439766}

Powered by Google App Engine
This is Rietveld 408576698