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 ded76e9c9b7d0c5893bd50330837804adcacd97d..fc69c1e89e4adb408a21f6ec048bf0dba365baf3 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -34,6 +34,7 @@ |
#include "chrome/common/chrome_version_info.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.h" |
#include "components/domain_reliability/monitor.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/cookie_store_factory.h" |
@@ -142,7 +143,9 @@ void ProfileImplIOData::Handle::Init( |
scoped_ptr<DataReductionProxyChromeConfigurator> |
data_reduction_proxy_chrome_configurator, |
scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
- data_reduction_proxy_params) { |
+ data_reduction_proxy_params, |
+ scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
+ data_reduction_proxy_statistics_prefs) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
DCHECK(!io_data_->lazy_params_); |
DCHECK(predictor); |
@@ -182,6 +185,8 @@ void ProfileImplIOData::Handle::Init( |
data_reduction_proxy_chrome_configurator.Pass(); |
io_data_->data_reduction_proxy_params_ = |
data_reduction_proxy_params.Pass(); |
+ io_data_->data_reduction_proxy_statistics_prefs_ = |
+ data_reduction_proxy_statistics_prefs.Pass(); |
#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
} |
@@ -451,6 +456,8 @@ void ProfileImplIOData::InitializeInternal( |
data_reduction_proxy_usage_stats_.get()); |
network_delegate()->set_data_reduction_proxy_auth_request_handler( |
data_reduction_proxy_auth_request_handler_.get()); |
+ network_delegate()->set_data_reduction_proxy_statistics_prefs( |
+ data_reduction_proxy_statistics_prefs_.get()); |
network_delegate()->set_on_resolve_proxy_handler( |
base::Bind(data_reduction_proxy::OnResolveProxyHandler)); |
network_delegate()->set_proxy_config_getter( |