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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.cc

Issue 1868523002: [NTP Snippets] Fetcher: only download snippets that have a thumbnail (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: separate restricts Created 4 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_fetcher.cc
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.cc b/components/ntp_snippets/ntp_snippets_fetcher.cc
index 10e48b0be5f6ea3201ef03df132996633fa09f68..df764b7b4f8347e7b14e35062b3d511b3bfa9a2f 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.cc
+++ b/components/ntp_snippets/ntp_snippets_fetcher.cc
@@ -34,6 +34,18 @@ const char kRequestParameterFormat[] =
" \"local_scoring_params\": {"
" \"content_params\": {"
" \"only_return_personalized_results\": false"
+ " },"
+ " \"content_restricts\": {"
+ " \"type\": \"METADATA\","
+ " \"value\": \"TITLE\""
+ " },"
+ " \"content_restricts\": {"
+ " \"type\": \"METADATA\","
+ " \"value\": \"SNIPPET\""
+ " },"
+ " \"content_restricts\": {"
+ " \"type\": \"METADATA\","
+ " \"value\": \"THUMBNAIL\""
" }"
"%s"
" },"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698