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

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

Issue 307013003: Revert 273810 "Added alternative configuration for the data redu..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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: trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc
===================================================================
--- trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (revision 273823)
+++ trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (working copy)
@@ -200,14 +200,11 @@
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
+ DataReductionProxySettings::GetDataReductionProxies()));
url_request_context_.reset(builder.Build());
// TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads.
@@ -225,21 +222,18 @@
20 * 1024 * 1024, // 20M
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));
-#if defined(SPDY_PROXY_AUTH_ORIGIN)
AwBrowserContext* browser_context = AwBrowserContext::GetDefault();
DCHECK(browser_context);
DataReductionProxySettings* drp_settings =
browser_context->GetDataReductionProxySettings();
- if (drp_settings) {
- 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);
- }
+ DCHECK(drp_settings);
+ std::string drp_key = drp_settings->key();
+ // Only precache credentials if a key is available at URLRequestContext
+ // initialization.
+ if (!drp_key.empty()) {
+ DataReductionProxySettings::InitDataReductionProxySession(
+ main_cache->GetSession(), drp_settings->key());
}
-#endif
main_http_factory_.reset(main_cache);
url_request_context_->set_http_transaction_factory(main_cache);
« no previous file with comments | « trunk/src/android_webview/browser/aw_browser_context.cc ('k') | trunk/src/android_webview/native/aw_contents_statics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698