Chromium Code Reviews| 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(); |