Chromium Code Reviews| Index: components/ntp_snippets/ntp_snippets_fetcher.h |
| diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h |
| index ae7fd6c97b85919d9d713199e98ebee26a11ad5e..039472ad6ad4bb3ffdbac99bb89e997e4d8e56db 100644 |
| --- a/components/ntp_snippets/ntp_snippets_fetcher.h |
| +++ b/components/ntp_snippets/ntp_snippets_fetcher.h |
| @@ -21,9 +21,13 @@ namespace ntp_snippets { |
| // Fetches snippet data for the NTP from the server |
| class NTPSnippetsFetcher : public net::URLFetcherDelegate { |
| public: |
| - using SnippetsAvailableCallback = base::Callback<void(const std::string&)>; |
| + // If problems occur (explained in status_message), snippets_json is empty. |
|
Bernhard Bauer
2016/04/22 09:42:17
Put variable names in comments between |pipe| symb
jkrcal
2016/04/22 11:11:59
Done.
|
| + // Otherwise, status_message is empty. |
| + using SnippetsAvailableCallback = |
| + base::Callback<void(const std::string& snippets_json, |
| + const std::string& status_message)>; |
| using SnippetsAvailableCallbackList = |
| - base::CallbackList<void(const std::string&)>; |
| + base::CallbackList<void(const std::string&, const std::string&)>; |
| NTPSnippetsFetcher( |
| scoped_refptr<base::SequencedTaskRunner> file_task_runner, |