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

Issue 2274953002: Inform server of dismissed articles. (Closed)

Created:
4 years, 3 months ago by sfiera
Modified:
4 years, 3 months ago
Reviewers:
Marc Treib, tschumann
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inform server of dismissed articles. It seems that the server currently has logic to not send back excluded IDs, but lacks the logic needed to request more. Still, that's something that can be improved in the server later. There should be tests for NTPSnippetsService to verify the new behavior, but that's not possible until it uses the new server. BUG=633613 Committed: https://crrev.com/52f7671273011c930c4f1ba8a252eac426f88948 Cr-Commit-Position: refs/heads/master@{#414428}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Patch Set 3 : JSON comma. #

Total comments: 6

Patch Set 4 : Review comments. #

Patch Set 5 : rebase #

Patch Set 6 : Rebase, fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -5 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.h View 1 2 3 5 chunks +11 lines, -1 line 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 4 6 chunks +15 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 5 21 chunks +66 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (18 generated)
sfiera
Oops. This is more important than server-side categories in M54. Fortunately, it's much shorter. PTAL
4 years, 3 months ago (2016-08-24 16:40:51 UTC) #2
tschumann
lgtm Completely unrelated: the fetcher could use some refactoring some day -- it's quite messy. ...
4 years, 3 months ago (2016-08-24 16:56:19 UTC) #4
chromium-reviews
On Wed, Aug 24, 2016 at 9:40 AM, <sfiera@chromium.org> wrote: > Reviewers: Marc Treib > ...
4 years, 3 months ago (2016-08-24 17:02:30 UTC) #5
sfiera
On 2016/08/24 17:02:30, chromium-reviews wrote: > Just clarifying: You mean to request more data from ...
4 years, 3 months ago (2016-08-24 17:08:29 UTC) #6
tschumann
https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode270 components/ntp_snippets/ntp_snippets_service.cc:270: excluded_ids.insert(snippet->id()); On 2016/08/24 17:08:28, sfiera wrote: > On 2016/08/24 ...
4 years, 3 months ago (2016-08-24 18:24:07 UTC) #9
Marc Treib
https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.h File components/ntp_snippets/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.h#newcode93 components/ntp_snippets/ntp_snippets_fetcher.h:93: // hosts, e.g. "www.google.com". An empty host set produces ...
4 years, 3 months ago (2016-08-25 09:01:42 UTC) #12
sfiera
https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.h File components/ntp_snippets/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/2274953002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.h#newcode93 components/ntp_snippets/ntp_snippets_fetcher.h:93: // hosts, e.g. "www.google.com". An empty host set produces ...
4 years, 3 months ago (2016-08-25 10:39:56 UTC) #13
Marc Treib
LGTM with some more nits https://codereview.chromium.org/2274953002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2274953002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode334 components/ntp_snippets/ntp_snippets_fetcher.cc:334: if (exclusion_count++ >= kMaxExcludedIds) ...
4 years, 3 months ago (2016-08-25 11:41:44 UTC) #18
sfiera
https://codereview.chromium.org/2274953002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2274953002/diff/40001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode334 components/ntp_snippets/ntp_snippets_fetcher.cc:334: if (exclusion_count++ >= kMaxExcludedIds) On 2016/08/25 11:41:44, Marc Treib ...
4 years, 3 months ago (2016-08-25 11:58:08 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/2274953002/80001
4 years, 3 months ago (2016-08-25 12:18:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/224766)
4 years, 3 months ago (2016-08-25 12:27:34 UTC) #26
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/2274953002/100001
4 years, 3 months ago (2016-08-25 12:41:18 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-25 14:05:52 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 14:09:06 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/52f7671273011c930c4f1ba8a252eac426f88948
Cr-Commit-Position: refs/heads/master@{#414428}

Powered by Google App Engine
This is Rietveld 408576698