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 9b2562d9a55db40f8d66053817da38e47ef6306e..c87289b470db4ab2c3fc570236ccf25dc6255950 100644 |
| --- a/components/ntp_snippets/ntp_snippets_service.h |
| +++ b/components/ntp_snippets/ntp_snippets_service.h |
| @@ -100,12 +100,16 @@ class NTPSnippetsService : public KeyedService, |
| bool initialized() const { return ready() || state_ == State::DISABLED; } |
| // Fetches snippets from the server and adds them to the current ones. |
| - void FetchSnippets(); |
| + // Requests can be marked more important by setting |force_request| to true |
| + // (such request might circumvent the daily quota for requests, etc.) Useful |
| + // for requests triggered by the user. |
| + void FetchSnippets(bool force_request); |
| // Fetches snippets from the server for specified hosts (overriding |
|
Bernhard Bauer
2016/07/22 13:59:14
Nit: can you add an empty line before this comment
jkrcal
2016/07/25 10:05:38
Done.
|
| // suggestions from the suggestion service) and adds them to the current ones. |
| // Only called from chrome://snippets-internals, DO NOT USE otherwise! |
| // Ignored while |loaded()| is false. |
| - void FetchSnippetsFromHosts(const std::set<std::string>& hosts); |
| + void FetchSnippetsFromHosts(const std::set<std::string>& hosts, |
| + bool force_request); |
| // Available snippets. |
| const NTPSnippet::PtrVector& snippets() const { return snippets_; } |