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 8c821a9c9d645f019e34f84177694740f30aec8a..417cbc47bae259799147e2f1d4e4b849f09dd3f7 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -54,9 +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_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" |
@@ -109,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) |
@@ -882,10 +877,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(); |
} |
+ |
sclittle
2015/01/14 22:54:46
nit: remove blank line
bengr
2015/01/15 00:30:31
Done.
|
base::WeakPtr<net::HttpServerProperties> |
ProfileIOData::http_server_properties() const { |
return http_server_properties_->GetWeakPtr(); |
@@ -1253,8 +1251,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_) |
@@ -1309,6 +1307,8 @@ scoped_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory( |
params.network_delegate = context->network_delegate(); |
params.http_server_properties = context->http_server_properties(); |
params.net_log = context->net_log(); |
+ if (data_reduction_proxy_io_data_.get()) |
+ params.proxy_delegate = data_reduction_proxy_io_data_->proxy_delegate(); |
network_controller_.reset(new DevToolsNetworkController()); |