| 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 3d62cc396d53788a1e664eb0e3b33641fbc309a8..7c820ae75c79d3f225ce99664a2f6aff7aa2aca6 100644
|
| --- a/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_fetcher.cc
|
| @@ -121,6 +121,11 @@ void NTPSnippetsFetcher::OnGetTokenSuccess(
|
| url_fetcher_->SetUploadData("application/json",
|
| base::StringPrintf(kRequestParameterFormat,
|
| host_restricts.c_str()));
|
| +
|
| + // 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.
|
| + url_fetcher_->SetMaxRetriesOn5xx(3);
|
| url_fetcher_->Start();
|
| }
|
|
|
|
|