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

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: 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 b0f81d16fb41e4a14d702d4420cb18d21822fab6..3a34ac9cd21c34151c76f7d4c2dbb1a65d61c54e 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.cc
+++ b/components/ntp_snippets/ntp_snippets_fetcher.cc
@@ -38,6 +38,10 @@ const char kRequestParameterFormat[] =
" \"local_scoring_params\": {"
" \"content_params\": {"
" \"only_return_personalized_results\": false"
+ " },"
+ " \"content_restricts\": {"
+ " \"type\": \"METADATA\","
+ " \"value\": \"ALL\""
May 2016/04/06 13:39:20 Does ALL mean title, snippet, thumbnail, URL? Or w
Marc Treib 2016/04/06 13:52:54 ALL means title, snippet, and thumbnail. (Presumab
May 2016/04/07 16:05:12 Yeah, I think so. It would insulate us better from
Marc Treib 2016/04/07 16:15:52 Done.
" }"
"%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