Chromium Code Reviews| 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..95a2b637a7b314a276c7b82a703cc453adaa3afe 100644 |
| --- a/components/ntp_snippets/ntp_snippets_fetcher.cc |
| +++ b/components/ntp_snippets/ntp_snippets_fetcher.cc |
| @@ -255,6 +255,10 @@ 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) << "Sendind a ntp snippets request to " << url << ":"; |
|
Bernhard Bauer
2016/06/21 16:33:05
Nit: "Sending", "NTP".
jkrcal
2016/06/23 08:21:35
Done.
|
| + VLOG(1) << headers.ToString(); |
|
Bernhard Bauer
2016/06/21 16:33:05
You don't need a new VLOG() invocation; just keep
jkrcal
2016/06/23 08:21:35
Done (added some new lines, as well).
|
| + VLOG(1) << 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. |