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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc

Issue 467823002: Added support for 'Chrome-Proxy: block-once' header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased on master Created 6 years, 4 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 | components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
index 4713a815aab9b005639c6475e33232651ff3565c..6c4fc8723ecc5d493757cc1d662c4aacf7ebfe49 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
@@ -90,10 +90,12 @@ bool MaybeBypassProxyAndPrepareToRetry(
bypass_type);
}
- MarkProxiesAsBadUntil(request,
- data_reduction_proxy_info.bypass_duration,
- data_reduction_proxy_info.bypass_all,
- data_reduction_proxy_type_info.proxy_servers);
+ if (data_reduction_proxy_info.mark_proxies_as_bad) {
+ MarkProxiesAsBadUntil(request,
+ data_reduction_proxy_info.bypass_duration,
+ data_reduction_proxy_info.bypass_all,
+ data_reduction_proxy_type_info.proxy_servers);
+ }
// Only retry idempotent methods.
if (!IsRequestIdempotent(request))
« no previous file with comments | « no previous file | components/data_reduction_proxy/browser/data_reduction_proxy_protocol_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698