Index: components/data_reduction_proxy/common/data_reduction_proxy_headers.cc |
diff --git a/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc b/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc |
index b5c6119080948ba3618b2c0d02b51fcb521eb860..32b2083acda5053863ecb5074314b0b6a06ab8f5 100644 |
--- a/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc |
+++ b/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc |
@@ -114,6 +114,9 @@ GetDataReductionProxyBypassType( |
// A chrome-proxy response header is only present in a 502. For proper |
// reporting, this check must come before the 5xx checks below. |
const TimeDelta& duration = data_reduction_proxy_info->bypass_duration; |
+ //bypass=0 means bypass for a random duration between 1 to 5 minutes |
bengr
2014/07/16 23:28:15
add space after //
|
+ if(duration == TimeDelta()) |
bengr
2014/07/16 23:28:15
if (duration...
|
+ return ProxyService::MEDIUM_BYPASS; |
if (duration <= TimeDelta::FromSeconds(kShortBypassMaxSeconds)) |
return ProxyService::SHORT_BYPASS; |
if (duration <= TimeDelta::FromSeconds(kMediumBypassMaxSeconds)) |