| Index: components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
|
| diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
|
| index 2763aa4762c4d3848eb37f327fb0474fdd7576d5..09cfd14e80973590cfa600747710f01877292479 100644
|
| --- a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
|
| +++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
|
| @@ -339,6 +339,20 @@ RemoteSuggestionsProviderImpl::suggestions_fetcher_for_debugging() const {
|
| return suggestions_fetcher_.get();
|
| }
|
|
|
| +GURL RemoteSuggestionsProviderImpl::GetUrlWithFavicon(
|
| + const ContentSuggestion::ID& suggestion_id) const {
|
| + DCHECK(base::ContainsKey(category_contents_, suggestion_id.category()));
|
| +
|
| + const CategoryContent& content =
|
| + category_contents_.at(suggestion_id.category());
|
| + const RemoteSuggestion* suggestion =
|
| + content.FindSuggestion(suggestion_id.id_within_category());
|
| + if (!suggestion) {
|
| + return GURL();
|
| + }
|
| + return ContentSuggestion::GetFaviconDomain(suggestion->url());
|
| +}
|
| +
|
| void RemoteSuggestionsProviderImpl::FetchSuggestions(
|
| bool interactive_request,
|
| const FetchStatusCallback& callback) {
|
|
|