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

Issue 2496163002: [NTP Snippets] Don't notify about new suggestion when in a not-available state (Closed)

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

Description

[NTP Snippets] Don't notify about new suggestion when in a not-available state BUG=662179 Committed: https://crrev.com/fb76bb12a9fa5ee0024dc92d32de3c2a0e8c8e46 Cr-Commit-Position: refs/heads/master@{#432165}

Patch Set 1 #

Patch Set 2 : add test; fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -25 lines) Patch
M components/ntp_snippets/remote/remote_suggestions_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_unittest.cc View 1 10 chunks +38 lines, -23 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Marc Treib
PTAL!
4 years, 1 month ago (2016-11-14 11:18:17 UTC) #3
chromium-reviews
Drive-by: any chance of a can cover this with a test? IMO all fixed should ...
4 years, 1 month ago (2016-11-14 11:47:58 UTC) #4
Marc Treib
On 2016/11/14 11:47:58, chromium-reviews wrote: > Drive-by: any chance of a can cover this with ...
4 years, 1 month ago (2016-11-14 13:17:02 UTC) #5
dgn
Maybe also update SuggestionsSection#addSuggestions to assert for the status to be available, since the alternative ...
4 years, 1 month ago (2016-11-14 14:03:10 UTC) #6
Marc Treib
On 2016/11/14 14:03:10, dgn wrote: > Maybe also update SuggestionsSection#addSuggestions to assert for the status ...
4 years, 1 month ago (2016-11-14 14:09:30 UTC) #7
dgn
On 2016/11/14 14:09:30, Marc Treib wrote: > On 2016/11/14 14:03:10, dgn wrote: > > Maybe ...
4 years, 1 month ago (2016-11-14 14:57:22 UTC) #8
Marc Treib
On 2016/11/14 14:57:22, dgn wrote: > On 2016/11/14 14:09:30, Marc Treib wrote: > > On ...
4 years, 1 month ago (2016-11-14 15:04:56 UTC) #9
Marc Treib
Ping! Is this okay to land? I'd like to get it into M56.
4 years, 1 month ago (2016-11-15 09:15:08 UTC) #10
dgn
sorry for the delay, lgtm
4 years, 1 month ago (2016-11-15 10:37:26 UTC) #11
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/2496163002/20001
4 years, 1 month ago (2016-11-15 10:50:53 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-15 11:35:26 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/fb76bb12a9fa5ee0024dc92d32de3c2a0e8c8e46 Cr-Commit-Position: refs/heads/master@{#432165}
4 years, 1 month ago (2016-11-15 11:37:14 UTC) #17
tschumann
4 years, 1 month ago (2016-11-15 12:55:53 UTC) #18
Message was sent while issue was closed.
On 2016/11/14 13:17:02, Marc Treib wrote:
> On 2016/11/14 11:47:58, chromium-reviews wrote:
> > Drive-by: any chance of a can cover this with a test? IMO all fixed should
> > come with a test verifying it does what we expect and more importantly,
> > don't regress in the future.
> > 
> > --Tim
> 
> I wouldn't quite agree to the "all" - IMO there are situations where a
> regression test doesn't really add any value.
please let me know when you come across one of those. I'm pretty sure the tests
would add value, it might just be super-hard to test (which can be a separate
issue).
> 
> That said, this isn't one of them :)  In fact, the test I added uncovered
> another problem. So thanks for pushing me to be less lazy! ;)
:-)

Powered by Google App Engine
This is Rietveld 408576698