From 02cf5a4cb28d86669bcc4c3934f51437795b05ac Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Tue, 12 Jan 2010 22:10:25 +0000 Subject: Retry proxies which were cached as bad before giving up. This morphs ProxyList::RemoveBadProxies() into ProxyList::DeprioritizeBadProxies(), such that "bad proxies" are moved to the end of the fallback list rather than removed alltogether. BUG=31983 TEST=ProxyListTest.DeprioritizeBadProxies Review URL: http://codereview.chromium.org/542029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36054 0039d316-1c4b-4281-b951-d872f2087c98 --- net/proxy/proxy_service.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/proxy/proxy_service.cc') diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc index 8160e64..b90d781 100644 --- a/net/proxy/proxy_service.cc +++ b/net/proxy/proxy_service.cc @@ -498,7 +498,7 @@ int ProxyService::DidFinishResolvingProxy(ProxyInfo* result, // Clean up the results list. if (result_code == OK) - result->RemoveBadProxies(proxy_retry_info_); + result->DeprioritizeBadProxies(proxy_retry_info_); LoadLog::EndEvent(load_log, LoadLog::TYPE_PROXY_SERVICE); return result_code; -- cgit v1.1