Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc |
index ac38c1f0faa3516cbe23cf9bdb1121d442f5df32..01e2647b6ec129d528225cf0dda957702460af05 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc |
@@ -193,8 +193,14 @@ void DataReductionProxyConfigTracker::AddURLPatternToBypass( |
void DataReductionProxyConfigTracker::UpdateProxyConfigOnIOThread( |
bool enabled, |
const net::ProxyConfig& config) { |
+ config_ = config; |
task_runner_->PostTask( |
FROM_HERE, base::Bind(update_proxy_config_, enabled, config)); |
} |
+const net::ProxyConfig& |
+DataReductionProxyConfigTracker::GetProxyConfigOnIOThread() const { |
+ return config_; |
+} |
+ |
} // namespace data_reduction_proxy |