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

Unified Diff: chrome/browser/metrics/variations/variations_service.cc

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, post first try if online, more tests Created 8 years 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
Index: chrome/browser/metrics/variations/variations_service.cc
diff --git a/chrome/browser/metrics/variations/variations_service.cc b/chrome/browser/metrics/variations/variations_service.cc
index e2e7145a21b0230d098a594a9129bd82103fa931..68ac53399f3cabac0a60324f0544c7c4b7028340 100644
--- a/chrome/browser/metrics/variations/variations_service.cc
+++ b/chrome/browser/metrics/variations/variations_service.cc
@@ -177,7 +177,7 @@ void VariationsService::DoActualFetch() {
net::LOAD_DO_NOT_SAVE_COOKIES);
pending_seed_request_->SetRequestContext(
g_browser_process->system_request_context());
- pending_seed_request_->SetMaxRetries(kMaxRetrySeedFetch);
+ pending_seed_request_->SetMaxRetriesOn5xx(kMaxRetrySeedFetch);
if (!variations_serial_number_.empty()) {
pending_seed_request_->AddExtraRequestHeader("If-Match:" +
variations_serial_number_);

Powered by Google App Engine
This is Rietveld 408576698