| Index: components/ntp_snippets/ntp_snippet.cc
|
| diff --git a/components/ntp_snippets/ntp_snippet.cc b/components/ntp_snippets/ntp_snippet.cc
|
| index 640aea1e390994ec13896c5a6f6880368953bec5..945d0b61782db6f07f904731ac417b7766f5c4ac 100644
|
| --- a/components/ntp_snippets/ntp_snippet.cc
|
| +++ b/components/ntp_snippets/ntp_snippet.cc
|
| @@ -10,7 +10,6 @@
|
| #include "base/values.h"
|
| #include "components/ntp_snippets/content_suggestion.h"
|
| #include "components/ntp_snippets/content_suggestion_category.h"
|
| -#include "components/ntp_snippets/content_suggestions_provider_type.h"
|
| #include "components/ntp_snippets/proto/ntp_snippets.pb.h"
|
|
|
| namespace {
|
| @@ -246,10 +245,10 @@ SnippetProto NTPSnippet::ToProto() const {
|
| return result;
|
| }
|
|
|
| -std::unique_ptr<ContentSuggestion> NTPSnippet::ToContentSuggestion() const {
|
| +std::unique_ptr<ContentSuggestion> NTPSnippet::ToContentSuggestion(
|
| + const std::string& id) const {
|
| std::unique_ptr<ContentSuggestion> result(new ContentSuggestion(
|
| - id_, ContentSuggestionsProviderType::ARTICLES,
|
| - ContentSuggestionCategory::ARTICLE, best_source().url));
|
| + id, ContentSuggestionCategory::ARTICLE, best_source().url));
|
| result->set_amp_url(best_source().amp_url);
|
| result->set_title(title_);
|
| result->set_snippet_text(snippet_);
|
|
|