Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: components/google/core/browser/google_url_tracker.cc

Issue 544833002: Apply the network changed retry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/google/core/browser/google_url_tracker.cc
diff --git a/components/google/core/browser/google_url_tracker.cc b/components/google/core/browser/google_url_tracker.cc
index 0c27a436064dc0050bae50bcae53e36dd2b9f6d0..1af61b62f6dcb9f91eb3a6b1efb5d40c19256eb0 100644
--- a/components/google/core/browser/google_url_tracker.cc
+++ b/components/google/core/browser/google_url_tracker.cc
@@ -246,9 +246,11 @@ void GoogleURLTracker::StartFetchIfDesirable() {
net::LOAD_DO_NOT_SAVE_COOKIES);
fetcher_->SetRequestContext(client_->GetRequestContext());
- // Configure to max_retries at most kMaxRetries times for 5xx errors.
+ // Configure to retry at most kMaxRetries times for 5xx errors.
static const int kMaxRetries = 5;
fetcher_->SetMaxRetriesOn5xx(kMaxRetries);
+ // Configure to retry at most kMaxRetries times for network changes.
Peter Kasting 2014/09/05 22:43:18 Nit: How about this comment: Also retry kMaxRetri
Jaekyun Seok (inactive) 2014/09/06 03:14:43 Done.
+ fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries);
fetcher_->Start();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698