| Index: components/ntp_snippets/ntp_snippets_fetcher.cc
|
| diff --git a/components/ntp_snippets/ntp_snippets_fetcher.cc b/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| index b7786e57eb9d7932041cb72a9e6b14188e915729..7b6debba815041eae2b72c37e01350a18d0ced7e 100644
|
| --- a/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| @@ -255,6 +255,9 @@ void NTPSnippetsFetcher::FetchSnippetsImpl(const GURL& url,
|
| headers.SetHeader("Content-Type", "application/json; charset=UTF-8");
|
| url_fetcher_->SetExtraRequestHeaders(headers.ToString());
|
| url_fetcher_->SetUploadData("application/json", request);
|
| + // Log the request for debugging network issues.
|
| + VLOG(1) << "Sending a NTP snippets request to " << url << ":" << std::endl
|
| + << headers.ToString() << std::endl << request;
|
| // Fetchers are sometimes cancelled because a network change was detected.
|
| url_fetcher_->SetAutomaticallyRetryOnNetworkChanges(3);
|
| // Try to make fetching the files bit more robust even with poor connection.
|
|
|