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

Unified Diff: chrome/browser/policy/device_management_service.cc

Issue 11572044: Automatically retry the following URLFetchers when the network changes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Document the retry behavior 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
« no previous file with comments | « chrome/browser/policy/app_pack_updater.cc ('k') | google_apis/gaia/gaia_oauth_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/device_management_service.cc
diff --git a/chrome/browser/policy/device_management_service.cc b/chrome/browser/policy/device_management_service.cc
index 18245b347dbcd34a6284bac30c662342d9c1a0c7..b218e31d0e00fcd7eda7f0c4e0d7597b0476159e 100644
--- a/chrome/browser/policy/device_management_service.cc
+++ b/chrome/browser/policy/device_management_service.cc
@@ -512,6 +512,12 @@ void DeviceManagementService::StartJob(DeviceManagementRequestJobImpl* job,
net::LOAD_DISABLE_CACHE |
(bypass_proxy ? net::LOAD_BYPASS_PROXY : 0));
fetcher->SetRequestContext(request_context_getter_.get());
+ // Early device policy fetches on ChromeOS and Auto-Enrollment checks are
+ // often interrupted during ChromeOS startup when network change notifications
+ // are sent. Allowing the fetcher to retry once after that is enough to
+ // recover; allow it to retry up to 3 times just in case.
+ // http://crosbug.com/16114
+ fetcher->SetAutomaticallyRetryOnNetworkChanges(3);
job->ConfigureRequest(fetcher);
pending_jobs_[fetcher] = job;
fetcher->Start();
« no previous file with comments | « chrome/browser/policy/app_pack_updater.cc ('k') | google_apis/gaia/gaia_oauth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698