| Index: chrome/browser/profiles/profile_io_data.cc
|
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
|
| index 50d7970aa3b5bf2b7c006f3444c7804febc68dd7..2b76586bcf679d35af14619dd8c4c29a57b6d588 100644
|
| --- a/chrome/browser/profiles/profile_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_io_data.cc
|
| @@ -43,7 +43,6 @@
|
| #include "chrome/browser/net/cookie_store_util.h"
|
| #include "chrome/browser/net/proxy_service_factory.h"
|
| #include "chrome/browser/net/resource_prefetch_predictor_observer.h"
|
| -#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h"
|
| #include "chrome/browser/predictors/resource_prefetch_predictor.h"
|
| #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -55,11 +54,7 @@
|
| #include "chrome/common/url_constants.h"
|
| #include "components/content_settings/core/browser/content_settings_provider.h"
|
| #include "components/content_settings/core/browser/host_content_settings_map.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
|
| -#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
|
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
|
| #include "components/dom_distiller/core/url_constants.h"
|
| #include "components/startup_metric_utils/startup_metric_utils.h"
|
| #include "components/sync_driver/pref_names.h"
|
| @@ -112,9 +107,6 @@
|
| #endif
|
|
|
| #if defined(OS_ANDROID)
|
| -#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
|
| -#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
|
| -#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
|
| #include "content/public/browser/android/content_protocol_handler.h"
|
| #endif // defined(OS_ANDROID)
|
|
|
| @@ -892,10 +884,13 @@ bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const {
|
| #endif // defined(OS_CHROMEOS)
|
| }
|
|
|
| -bool ProfileIOData::IsDataReductionProxyEnabled() const {
|
| - return false;
|
| +void ProfileIOData::set_data_reduction_proxy_io_data(
|
| + scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
|
| + data_reduction_proxy_io_data) const {
|
| + data_reduction_proxy_io_data_ = data_reduction_proxy_io_data.Pass();
|
| }
|
|
|
| +
|
| base::WeakPtr<net::HttpServerProperties>
|
| ProfileIOData::http_server_properties() const {
|
| return http_server_properties_->GetWeakPtr();
|
| @@ -1263,8 +1258,8 @@ void ProfileIOData::ShutdownOnUIThread(
|
| quick_check_enabled_.Destroy();
|
| if (media_device_id_salt_.get())
|
| media_device_id_salt_->ShutdownOnUIThread();
|
| - if (data_reduction_proxy_statistics_prefs_.get())
|
| - data_reduction_proxy_statistics_prefs_->ShutdownOnUIThread();
|
| + if (data_reduction_proxy_io_data())
|
| + data_reduction_proxy_io_data()->ShutdownStatisicsPrefsOnUIThread();
|
| session_startup_pref_.Destroy();
|
| #if defined(ENABLE_CONFIGURATION_POLICY)
|
| if (url_blacklist_manager_)
|
|
|