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

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

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: Addressed comment from mmenke Created 6 years 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
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

Powered by Google App Engine
This is Rietveld 408576698