| 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..1c0b7d4e7a109a0d741bd8ed4c7ea2a40ebcc9aa 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; 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,
|
|
|