Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: components/ntp_snippets/remote/ntp_snippets_fetcher.cc

Issue 2570673004: Remove host restrictions from snippets (Closed)
Patch Set: Remove host restrictions from snippets Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/remote/ntp_snippets_fetcher.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_fetcher.cc b/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
index 360d4764d079f064895b53f462cb47b7dbd0c706..0eb9498544c40756e5610435a1c43d2c5397b813 100644
--- a/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_fetcher.cc
@@ -716,12 +716,6 @@ std::string NTPSnippetsFetcher::RequestBuilder::BuildBody() const {
}
auto content_selectors = base::MakeUnique<base::ListValue>();
- for (const auto& host : params_.hosts) {
- auto entry = base::MakeUnique<base::DictionaryValue>();
- entry->SetString("type", "HOST_RESTRICT");
- entry->SetString("value", host);
- content_selectors->Append(std::move(entry));
- }
auto local_scoring_params = base::MakeUnique<base::DictionaryValue>();
local_scoring_params->Set("content_params", std::move(content_params));
@@ -755,11 +749,6 @@ std::string NTPSnippetsFetcher::RequestBuilder::BuildBody() const {
request->SetString("uiLanguage", user_locale);
}
- auto regular_hosts = base::MakeUnique<base::ListValue>();
- for (const auto& host : params_.hosts) {
- regular_hosts->AppendString(host);
- }
- request->Set("regularlyVisitedHostNames", std::move(regular_hosts));
request->SetString("priority", params_.interactive_request
? "USER_ACTION"
: "BACKGROUND_PREFETCH");
« no previous file with comments | « components/ntp_snippets/remote/ntp_snippets_fetcher.h ('k') | components/ntp_snippets/remote/remote_suggestions_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698