| Index: android_webview/browser/net/aw_url_request_context_getter.cc
|
| diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
|
| index ceb361f88fac82a71e3d954d58f29fe7cf41210f..05ee5bfc3a66243a308b0486f643d2394eacad1f 100644
|
| --- a/android_webview/browser/net/aw_url_request_context_getter.cc
|
| +++ b/android_webview/browser/net/aw_url_request_context_getter.cc
|
| @@ -18,7 +18,6 @@
|
| #include "base/threading/sequenced_worker_pool.h"
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_config_service.h"
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
|
| -#include "components/data_reduction_proxy/browser/http_auth_handler_data_reduction_proxy.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/content_browser_client.h"
|
| #include "content/public/browser/cookie_store_factory.h"
|
| @@ -92,7 +91,6 @@ void PopulateNetworkSessionParams(
|
| params->network_delegate = context->network_delegate();
|
| params->http_server_properties = context->http_server_properties();
|
| params->net_log = context->net_log();
|
| -
|
| // TODO(sgurun) remove once crbug.com/329681 is fixed.
|
| params->next_protos = net::NextProtosSpdy31();
|
| params->use_alternate_protocols = true;
|
| @@ -198,15 +196,6 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
|
| AwContentBrowserClient::GetAcceptLangsImpl()));
|
| ApplyCmdlineOverridesToURLRequestContextBuilder(&builder);
|
|
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| - data_reduction_proxy::DataReductionProxyParams drp_params(
|
| - data_reduction_proxy::DataReductionProxyParams::kAllowed);
|
| - builder.add_http_auth_handler_factory(
|
| - data_reduction_proxy::HttpAuthHandlerDataReductionProxy::Scheme(),
|
| - new data_reduction_proxy::HttpAuthHandlerDataReductionProxy::Factory(
|
| - drp_params.GetAllowedProxies()));
|
| -#endif
|
| -
|
| url_request_context_.reset(builder.Build());
|
| // TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads.
|
| net::HttpNetworkSession::Params network_session_params;
|
| @@ -231,13 +220,8 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
|
| if (drp_settings) {
|
| aw_network_delegate->set_data_reduction_proxy_params(
|
| drp_settings->params());
|
| - std::string drp_key = drp_settings->params()->key();
|
| - // Only precache credentials if a key is available at URLRequestContext
|
| - // initialization.
|
| - if (!drp_key.empty()) {
|
| - DataReductionProxySettings::InitDataReductionProxySession(
|
| - main_cache->GetSession(), &drp_params);
|
| - }
|
| + aw_network_delegate->set_data_reduction_proxy_auth_request_handler(
|
| + browser_context->GetDataReductionProxyAuthRequestHandler());
|
| }
|
| #endif
|
|
|
|
|