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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc

Issue 1166803004: Do not request Data Reduction Proxy configuration if disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
index 0cfbcc702f1618986f9f2d8c0ad4756645b6bba6..2fe038cbfd264a078892abaac36464ccde61dfd1 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
@@ -213,7 +213,8 @@ void DataReductionProxySettings::UpdateIOData(bool at_startup) {
data_reduction_proxy_service_->SetProxyPrefs(
IsDataReductionProxyEnabled(), IsDataReductionProxyAlternativeEnabled(),
at_startup);
- data_reduction_proxy_service_->RetrieveConfig();
+ if (IsDataReductionProxyEnabled())
+ data_reduction_proxy_service_->RetrieveConfig();
}
void DataReductionProxySettings::MaybeActivateDataReductionProxy(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698