Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1896)

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a37ba3942af7ee7d927ccdb9efac4f583e271e7a 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,6 @@ 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);
- }
}
#endif

Powered by Google App Engine
This is Rietveld 408576698