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 190fe5cd062d0f8e499a1c548875f6e2ec2f4589..e269e3e8330fddd79e1ad0c8f94259e58b33fa16 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -55,6 +55,7 @@ |
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h" |
#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.h" |
#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h" |
#include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h" |
#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
@@ -141,7 +142,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); |
@@ -181,6 +184,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) |
} |
@@ -450,6 +455,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( |