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

Issue 2616543002: Expose notification info in ContentSuggestion (Closed)

Created:
3 years, 11 months ago by sfiera
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

Expose notification info in ContentSuggestion Add ContentSuggestion::notification_extra(), set when we should notify. Set it based on notificationInfo from the JSON response. For the sake of the test, move the code to convert NTPSnippet to ContentSuggestion in NTPSnippet itself. BUG=675961 Review-Url: https://codereview.chromium.org/2616543002 Cr-Commit-Position: refs/heads/master@{#441653} Committed: https://chromium.googlesource.com/chromium/src/+/a588fa5a67e9f1c24326ae6f0b2475e1bb1e8d5f

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -29 lines) Patch
M components/ntp_snippets/content_suggestion.h View 3 chunks +19 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestion.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippet.h View 4 chunks +10 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippet.cc View 1 4 chunks +38 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/ntp_snippet_unittest.cc View 1 18 chunks +137 lines, -14 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl.cc View 3 chunks +1 line, -14 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
sfiera
Howdy, owner!
3 years, 11 months ago (2017-01-03 22:41:10 UTC) #4
jkrcal
lgtm https://codereview.chromium.org/2616543002/diff/1/components/ntp_snippets/remote/ntp_snippet.cc File components/ntp_snippets/remote/ntp_snippet.cc (right): https://codereview.chromium.org/2616543002/diff/1/components/ntp_snippets/remote/ntp_snippet.cc#newcode263 components/ntp_snippets/remote/ntp_snippet.cc:263: snippet->should_notify_ = false; nit: is this needed? should_notify_ ...
3 years, 11 months ago (2017-01-04 07:34:32 UTC) #7
sfiera
https://codereview.chromium.org/2616543002/diff/1/components/ntp_snippets/remote/ntp_snippet.cc File components/ntp_snippets/remote/ntp_snippet.cc (right): https://codereview.chromium.org/2616543002/diff/1/components/ntp_snippets/remote/ntp_snippet.cc#newcode263 components/ntp_snippets/remote/ntp_snippet.cc:263: snippet->should_notify_ = false; On 2017/01/04 07:34:32, jkrcal wrote: > ...
3 years, 11 months ago (2017-01-05 14:03:56 UTC) #8
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/2616543002/20001
3 years, 11 months ago (2017-01-05 14:04:46 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 14:48:10 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a588fa5a67e9f1c24326ae6f0b24...

Powered by Google App Engine
This is Rietveld 408576698