Index: chrome/browser/io_thread.cc |
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc |
index 2a116ed77554707c3dab8c12be04f089de4ed2fc..6ff566e3f9238132d4ceb059937a0fb1936d5a36 100644 |
--- a/chrome/browser/io_thread.cc |
+++ b/chrome/browser/io_thread.cc |
@@ -40,7 +40,11 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/chrome_version_info.h" |
#include "chrome/common/pref_names.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
#include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h" |
#include "components/policy/core/common/policy_service.h" |
#include "components/variations/variations_associated_data.h" |
#include "content/public/browser/browser_thread.h" |
@@ -91,13 +95,6 @@ |
#include "net/ocsp/nss_ocsp.h" |
#endif |
-#if defined(OS_ANDROID) || defined(OS_IOS) |
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h" |
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h" |
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h" |
-#endif |
- |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/chromeos/login/users/user_manager.h" |
#include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" |
@@ -105,13 +102,10 @@ |
#endif |
using content::BrowserThread; |
- |
-#if defined(OS_ANDROID) || defined(OS_IOS) |
using data_reduction_proxy::DataReductionProxyAuthRequestHandler; |
using data_reduction_proxy::DataReductionProxyParams; |
using data_reduction_proxy::DataReductionProxyUsageStats; |
using data_reduction_proxy::DataReductionProxySettings; |
-#endif |
class SafeBrowsingURLRequestContext; |
@@ -625,11 +619,10 @@ void IOThread::InitAsync() { |
} |
#endif |
globals_->ssl_config_service = GetSSLConfigService(); |
-#if defined(OS_ANDROID) || defined(OS_IOS) |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
- int drp_flags = DataReductionProxyParams::kFallbackAllowed; |
+ int drp_flags = 0; |
if (DataReductionProxyParams::IsIncludedInFieldTrial()) |
bengr
2014/07/11 20:42:53
All of this stuff should be part of a data reducti
Not at Google. Contact bengr
2014/07/16 22:41:33
We are creating instances of 3 different classes h
|
- drp_flags |= DataReductionProxyParams::kAllowed; |
+ drp_flags = DataReductionProxyParams::kAllowed | |
+ DataReductionProxyParams::kFallbackAllowed; |
if (DataReductionProxyParams::IsIncludedInAlternativeFieldTrial()) |
drp_flags |= DataReductionProxyParams::kAlternativeAllowed; |
if (DataReductionProxyParams::IsIncludedInPromoFieldTrial()) |
@@ -651,10 +644,10 @@ void IOThread::InitAsync() { |
network_delegate->set_data_reduction_proxy_usage_stats(proxy_usage_stats); |
network_delegate->set_data_reduction_proxy_auth_request_handler( |
globals_->data_reduction_proxy_auth_request_handler.get()); |
+ |
network_delegate->set_on_resolve_proxy_handler( |
globals_->on_resolve_proxy_handler); |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
-#endif // defined(OS_ANDROID) || defined(OS_IOS) |
+ |
globals_->http_auth_handler_factory.reset(CreateDefaultAuthHandlerFactory( |
globals_->host_resolver.get())); |
globals_->http_server_properties.reset(new net::HttpServerPropertiesImpl()); |