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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 1978513002: Getting the personalization info in chrome://snippets-internals correct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polish 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.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index 13e949afb04dd48467f35c90321bb8acf9c4e08f..08367b2351d6313b5820193e7345edc99fbe1cf5 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -97,6 +97,21 @@ class NTPSnippetsService : public KeyedService {
return snippets_fetcher_->last_json();
}
+ // Does the fetcher use authentication to get personalized results?
+ bool UseAuthentication() const {
+ return snippets_fetcher_->UseAuthentication();
Bernhard Bauer 2016/05/18 10:08:04 I think at this point it might be easier to just r
jkrcal 2016/05/19 07:30:28 Done.
+ }
+
+ // Does the fetcher use host restriction?
+ bool UseHostRestriction() const {
+ return snippets_fetcher_->UseHostRestriction();
+ }
+
+ // Does the fetcher use host restriction?
+ NTPSnippetsFetcher::Personalization personalization() const {
+ return snippets_fetcher_->personalization();
+ }
+
// (Re)schedules the periodic fetching of snippets. This is necessary because
// the schedule depends on the time of day.
void RescheduleFetching();

Powered by Google App Engine
This is Rietveld 408576698