Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
index 20154b7923b5a34f6df2f23adde6aaa825af9f3f..7b3419c366d7a5933861d9db297f204b54236588 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc |
@@ -229,6 +229,36 @@ bool DataReductionProxyConfig::AreProxiesBypassed( |
return bypassed; |
} |
+bool DataReductionProxyConfig::IsNetworkBad() const { |
+ // TODO(tbansal): This must return the network quality based on |
+ // network quality estimated by NQE. |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return false; |
+} |
+ |
+bool DataReductionProxyConfig::IsIncludedInLoFiEnabledFieldTrial() const { |
+ // TODO(tbansal): This must return if the current session is in the LoFi |
+ // enabled field trial group. |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return false; |
+} |
+ |
+bool DataReductionProxyConfig::IsIncludedInLoFiControlFieldTrial() const { |
+ // TODO(tbansal): This must return if the current session is in the LoFi |
+ // control field trial group. |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return false; |
+} |
+ |
+AutoLoFiStatus DataReductionProxyConfig::GetAutoLoFiStatus() const { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ if (IsIncludedInLoFiControlFieldTrial() && IsNetworkBad()) |
+ return AUTO_LOFI_STATUS_OFF; |
+ if (IsIncludedInLoFiEnabledFieldTrial() && IsNetworkBad()) |
+ return AUTO_LOFI_STATUS_ON; |
+ return AUTO_LOFI_STATUS_DISABLED; |
+} |
+ |
bool DataReductionProxyConfig::IsProxyBypassed( |
const net::ProxyRetryInfoMap& retry_map, |
const net::ProxyServer& proxy_server, |