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

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: 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
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 972d32c0b6a8169932d786eb2830d62187b34036..7ae53ce09b599fc36547aa33c3d8b1b16594cab8 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -211,7 +211,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() {}
@@ -445,6 +446,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)));
« net/nqe/throughput_analyzer.h ('K') | « 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