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

Unified Diff: net/url_request/url_request_context_builder.cc

Issue 2045703003: Enable NQE when Cronet Engine is built (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mef comments Created 4 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/url_request/url_request_context_builder.h ('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 a6e71b29b780dd72438eb93d60c48a5a96a6fc49..1a6e124a3737b953112cb8522dfe0ef33cd2f97b 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -213,7 +213,8 @@ URLRequestContextBuilder::URLRequestContextBuilder()
backoff_enabled_(false),
sdch_enabled_(false),
cookie_store_set_by_client_(false),
- net_log_(nullptr) {
+ net_log_(nullptr),
+ socket_performance_watcher_factory_(nullptr) {
}
URLRequestContextBuilder::~URLRequestContextBuilder() {}
@@ -452,6 +453,10 @@ std::unique_ptr<URLRequestContext> URLRequestContextBuilder::Build() {
network_session_params.proxy_delegate = proxy_delegate_.get();
storage->set_proxy_delegate(std::move(proxy_delegate_));
}
+ if (socket_performance_watcher_factory_) {
+ network_session_params.socket_performance_watcher_factory =
+ socket_performance_watcher_factory_;
+ }
storage->set_http_network_session(
base::WrapUnique(new HttpNetworkSession(network_session_params)));
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698