Index: components/ntp_snippets/remote/remote_suggestions_provider.cc |
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider.cc b/components/ntp_snippets/remote/remote_suggestions_provider.cc |
index 3f8ce09352cb049d65d9ae44e45a984b32e0c6bb..bf4d1d431201a87a5cf4b0a36908ffcad36d8104 100644 |
--- a/components/ntp_snippets/remote/remote_suggestions_provider.cc |
+++ b/components/ntp_snippets/remote/remote_suggestions_provider.cc |
@@ -27,6 +27,7 @@ |
#include "components/image_fetcher/image_fetcher.h" |
#include "components/ntp_snippets/features.h" |
#include "components/ntp_snippets/pref_names.h" |
+#include "components/ntp_snippets/remote/ntp_snippets_request_params.h" |
#include "components/ntp_snippets/remote/remote_suggestions_database.h" |
#include "components/ntp_snippets/switches.h" |
#include "components/ntp_snippets/user_classifier.h" |
@@ -414,7 +415,7 @@ void RemoteSuggestionsProvider::FetchSnippets( |
MarkEmptyCategoriesAsLoading(); |
- NTPSnippetsFetcher::Params params = BuildFetchParams(); |
+ NTPSnippetsRequestParams params = BuildFetchParams(); |
params.interactive_request = interactive_request; |
snippets_fetcher_->FetchSnippets( |
params, base::BindOnce(&RemoteSuggestionsProvider::OnFetchFinished, |
@@ -431,7 +432,7 @@ void RemoteSuggestionsProvider::Fetch( |
"RemoteSuggestionsProvider is not ready!")); |
return; |
} |
- NTPSnippetsFetcher::Params params = BuildFetchParams(); |
+ NTPSnippetsRequestParams params = BuildFetchParams(); |
params.excluded_ids.insert(known_suggestion_ids.begin(), |
known_suggestion_ids.end()); |
params.interactive_request = true; |
@@ -443,8 +444,8 @@ void RemoteSuggestionsProvider::Fetch( |
} |
// Builds default fetcher params. |
-NTPSnippetsFetcher::Params RemoteSuggestionsProvider::BuildFetchParams() const { |
- NTPSnippetsFetcher::Params result; |
+NTPSnippetsRequestParams RemoteSuggestionsProvider::BuildFetchParams() const { |
+ NTPSnippetsRequestParams result; |
result.language_code = application_language_code_; |
result.count_to_fetch = kMaxSnippetCount; |
for (const auto& map_entry : category_contents_) { |