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

Unified Diff: components/ntp_snippets/ntp_snippets_service.cc

Issue 1922083004: Allow fetching personalized snippets from ChromeReader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes Created 4 years, 7 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
Index: components/ntp_snippets/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index d7ca7cb11e594565a0f3182664f69317830216aa..55f246262459de578d43f492657d0a72fce67030 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -11,11 +11,13 @@
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
+#include "base/json/json_reader.h"
Marc Treib 2016/05/09 12:33:34 Not required? Also stringprintf below I think.
jkrcal 2016/05/09 15:30:13 Done.
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
+#include "base/strings/stringprintf.h"
#include "base/task_runner_util.h"
#include "base/time/time.h"
#include "base/values.h"
@@ -211,7 +213,8 @@ void NTPSnippetsService::FetchSnippets() {
void NTPSnippetsService::FetchSnippetsFromHosts(
const std::set<std::string>& hosts) {
- snippets_fetcher_->FetchSnippetsFromHosts(hosts, kMaxSnippetCount);
+ snippets_fetcher_->FetchSnippetsFromHosts(
+ hosts, application_language_code_, kMaxSnippetCount);
}
void NTPSnippetsService::RescheduleFetching() {

Powered by Google App Engine
This is Rietveld 408576698