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 a49d8939f57a026832d02f200b556024246f8308..46bff358b93734f1d218f00ac3c950ddde728388 100644 |
--- a/android_webview/browser/net/aw_url_request_context_getter.cc |
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc |
@@ -31,6 +31,7 @@ |
#include "net/http/http_cache.h" |
#include "net/http/http_stream_factory.h" |
#include "net/proxy/proxy_service.h" |
+#include "net/socket/next_proto.h" |
#include "net/url_request/data_protocol_handler.h" |
#include "net/url_request/file_protocol_handler.h" |
#include "net/url_request/protocol_intercept_job_factory.h" |
@@ -90,6 +91,11 @@ 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; |
+ |
ApplyCmdlineOverridesToNetworkSessionParams(params); |
} |
@@ -235,10 +241,6 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() { |
job_factory_ = CreateJobFactory(&protocol_handlers_); |
url_request_context_->set_job_factory(job_factory_.get()); |
- |
- // TODO(sgurun) remove once crbug.com/329681 is fixed. Should be |
- // called only once. |
- net::HttpStreamFactory::EnableNpnSpdy31(); |
} |
net::URLRequestContext* AwURLRequestContextGetter::GetURLRequestContext() { |