ContextualContentSuggestionsService

Desktop / Chromium - gaschler [chromium.org] - 16 August 2017 11:39 UTC

Make a KeyedService that is created by Factory so it can be used independently from ContentSuggestionsService. The rename to is necessary because ContextualSuggestionsService is already used in components/omnibox.

Bug: 749988 Change-Id: Ic4bdb7d7ec3937c8a46cf73c58c8caa2d94d3829 Reviewed-on: https://chromium-review.googlesource.com/613540 Commit-Queue: Andre Gaschler

312936f ContextualContentSuggestionsService
chrome/browser/BUILD.gn | 2 +
chrome/browser/android/ntp/ntp_snippets_bridge.cc | 24 ++---
chrome/browser/android/ntp/ntp_snippets_bridge.h | 3 +
.../content_suggestions_service_factory.cc | 47 --------
...ntextual_content_suggestions_service_factory.cc | 119 +++++++++++++++++++++
...ontextual_content_suggestions_service_factory.h | 47 ++++++++
.../ui/webui/snippets_internals_message_handler.cc | 17 +--
.../ui/webui/snippets_internals_message_handler.h | 5 +
chrome/browser/ui/webui/snippets_internals_ui.cc | 3 +
components/ntp_snippets/BUILD.gn | 6 +-
.../ntp_snippets/content_suggestions_service.h | 15 ---
...c => contextual_content_suggestions_service.cc} | 21 ++--
....h => contextual_content_suggestions_service.h} | 24 +++--
...extual_content_suggestions_service_unittest.cc} | 29 ++---
14 files changed, 244 insertions(+), 118 deletions(-)

Upstream: git.chromium.org


  • Share