Commit 226ac7aa authored by jeremyim's avatar jeremyim Committed by Commit bot

Do not request Data Reduction Proxy configuration if disabled.

A minor tweak to disable retrieving a Data Reduction Proxy configuration
from the config service if the feature is not enabled by the user, but
the config service is enabled.

Review URL: https://codereview.chromium.org/1166803004

Cr-Commit-Position: refs/heads/master@{#333175}
parent b1bfa026
...@@ -213,7 +213,8 @@ void DataReductionProxySettings::UpdateIOData(bool at_startup) { ...@@ -213,7 +213,8 @@ void DataReductionProxySettings::UpdateIOData(bool at_startup) {
data_reduction_proxy_service_->SetProxyPrefs( data_reduction_proxy_service_->SetProxyPrefs(
IsDataReductionProxyEnabled(), IsDataReductionProxyAlternativeEnabled(), IsDataReductionProxyEnabled(), IsDataReductionProxyAlternativeEnabled(),
at_startup); at_startup);
data_reduction_proxy_service_->RetrieveConfig(); if (IsDataReductionProxyEnabled())
data_reduction_proxy_service_->RetrieveConfig();
} }
void DataReductionProxySettings::MaybeActivateDataReductionProxy( void DataReductionProxySettings::MaybeActivateDataReductionProxy(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment