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..6c656e11cf95fd1a3a926b5b7c7bf95c064b4190 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -27,12 +27,17 @@ |
#include "chrome/browser/net/http_server_properties_manager_factory.h" |
#include "chrome/browser/net/predictor.h" |
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h" |
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
#include "chrome/browser/net/sqlite_channel_id_store.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.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_usage_stats.h" |
+#include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h" |
#include "components/domain_reliability/monitor.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/cookie_store_factory.h" |
@@ -51,14 +56,6 @@ |
#include "net/url_request/url_request_job_factory_impl.h" |
#include "webkit/browser/quota/special_storage_policy.h" |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
-#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_usage_stats.h" |
-#include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h" |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
- |
namespace { |
net::BackendType ChooseCacheBackendType() { |
@@ -87,9 +84,7 @@ net::BackendType ChooseCacheBackendType() { |
} // namespace |
using content::BrowserThread; |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
using data_reduction_proxy::DataReductionProxyParams; |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
ProfileImplIOData::Handle::Handle(Profile* profile) |
: io_data_(new ProfileImplIOData), |
@@ -174,14 +169,12 @@ void ProfileImplIOData::Handle::Init( |
if (io_data_->domain_reliability_monitor_) |
io_data_->domain_reliability_monitor_->MoveToNetworkThread(); |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
io_data_->data_reduction_proxy_unavailable_callback_ = |
data_reduction_proxy_unavailable; |
io_data_->data_reduction_proxy_chrome_configurator_ = |
data_reduction_proxy_chrome_configurator.Pass(); |
io_data_->data_reduction_proxy_params_ = |
data_reduction_proxy_params.Pass(); |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
} |
content::ResourceContext* |
@@ -360,12 +353,10 @@ void ProfileImplIOData::Handle::LazyInitialize() const { |
io_data_->safe_browsing_enabled()->MoveToThread( |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
#endif |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
io_data_->data_reduction_proxy_enabled()->Init( |
data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); |
io_data_->data_reduction_proxy_enabled()->MoveToThread( |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
io_data_->InitializeOnUIThread(profile_); |
} |
@@ -429,7 +420,6 @@ void ProfileImplIOData::InitializeInternal( |
IOThread* const io_thread = profile_params->io_thread; |
IOThread::Globals* const io_thread_globals = io_thread->globals(); |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
data_reduction_proxy_auth_request_handler_.reset( |
new data_reduction_proxy::DataReductionProxyAuthRequestHandler( |
DataReductionProxyChromeSettings::GetClient(), |
@@ -443,7 +433,6 @@ void ProfileImplIOData::InitializeInternal( |
data_reduction_proxy_usage_stats_->set_unavailable_callback( |
data_reduction_proxy_unavailable_callback_); |
- |
network_delegate()->set_data_reduction_proxy_params( |
data_reduction_proxy_params_.get()); |
network_delegate()->set_data_reduction_proxy_usage_stats( |
@@ -456,7 +445,6 @@ void ProfileImplIOData::InitializeInternal( |
base::Bind( |
&DataReductionProxyChromeConfigurator::GetProxyConfigOnIO, |
base::Unretained(data_reduction_proxy_chrome_configurator_.get()))); |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
network_delegate()->set_predictor(predictor_.get()); |