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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 449973002: Use data reduction proxy when managed proxy config returns direct (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-uma-in-proxy-service
Patch Set: Created 6 years, 4 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
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 1c49b319401cd8cfc93508229b8a679235edf610..590497aecc7711bc3a57e1a820642fb3874828bb 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -153,6 +153,7 @@ void ProfileImplIOData::Handle::Init(
scoped_ptr<domain_reliability::DomainReliabilityMonitor>
domain_reliability_monitor,
const base::Callback<void(bool)>& data_reduction_proxy_unavailable,
+ const base::Callback<void(net::ProxyConfig*)>& proxy_config_getter,
scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
data_reduction_proxy_params) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -188,6 +189,7 @@ void ProfileImplIOData::Handle::Init(
#if defined(SPDY_PROXY_AUTH_ORIGIN)
io_data_->data_reduction_proxy_unavailable_callback_ =
data_reduction_proxy_unavailable;
+ io_data_->proxy_config_getter_ = proxy_config_getter;
io_data_->data_reduction_proxy_params_ =
data_reduction_proxy_params.Pass();
#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
@@ -435,6 +437,7 @@ void ProfileImplIOData::InitializeInternal(
data_reduction_proxy_auth_request_handler_.get());
network_delegate()->set_on_resolve_proxy_handler(
base::Bind(data_reduction_proxy::OnResolveProxyHandler));
+ network_delegate()->set_proxy_config_getter(proxy_config_getter_);
#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
network_delegate()->set_predictor(predictor_.get());

Powered by Google App Engine
This is Rietveld 408576698