[NTP::Push] Add feature params to control fetched/pushed notifications

Desktop / Chromium - Vitalii Iarko [chromium.org] - 10 August 2017 06:39 EDT

Previously we could only disable all suggestions. This CL adds feature params to selectively disable either fetched or pushed suggestion notifications. Pushed suggestion notifications param is disabled by default.


Bug: 753786 Change-Id: I5d779774b73004265324addd4fdf4b8f0c1603ab Reviewed-on: https://chromium-review.googlesource.com/609014 Commit-Queue: vitaliii

cbacb31 [NTP::Push] Add feature params to control fetched/pushed notifications.
components/ntp_snippets/remote/remote_suggestion.h | 5 +
.../remote/remote_suggestion_builder.cc | 19 +-
.../remote/remote_suggestion_builder.h | 5 +
.../remote/remote_suggestions_provider_impl.cc | 62 +++++-
.../remote_suggestions_provider_impl_unittest.cc | 233 +++++++++++++++++++++
5 files changed, 319 insertions(+), 5 deletions(-)

Upstream: git.chromium.org


  • Share