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

Unified Diff: net/url_request/url_request_context_builder.cc

Issue 2899313006: Plumb NQP to context and to http_proxy_client_socket_pool (Closed)
Patch Set: fix compile error Created 3 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
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.cc
diff --git a/net/url_request/url_request_context_builder.cc b/net/url_request/url_request_context_builder.cc
index da9363077b19e2d240e6eec16901ce832efa24fd..75fc710cdcdfd35aed63574aa0cc320094cb1186 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -37,6 +37,7 @@
#include "net/http/transport_security_persister.h"
#include "net/http/transport_security_state.h"
#include "net/net_features.h"
+#include "net/nqe/network_quality_estimator.h"
#include "net/quic/chromium/quic_stream_factory.h"
#include "net/ssl/channel_id_service.h"
#include "net/ssl/default_channel_id_store.h"
@@ -231,6 +232,8 @@ void URLRequestContextBuilder::SetHttpNetworkSessionComponents(
request_context->http_server_properties();
session_context->net_log = request_context->net_log();
session_context->channel_id_service = request_context->channel_id_service();
+ session_context->network_quality_provider =
+ request_context->network_quality_estimator();
}
void URLRequestContextBuilder::EnableHttpCache(const HttpCacheParams& params) {
@@ -420,6 +423,7 @@ std::unique_ptr<URLRequestContext> URLRequestContextBuilder::Build() {
if (socket_performance_watcher_factory_) {
network_session_context.socket_performance_watcher_factory =
socket_performance_watcher_factory_;
+ DCHECK(network_session_context.network_quality_provider);
}
storage->set_http_network_session(base::MakeUnique<HttpNetworkSession>(
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698