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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.cc

Issue 2899453002: Pass parsed network quality estimator params when constructing NQE (Closed)
Patch Set: fix Android compile error Created 3 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | ios/chrome/browser/ios_chrome_io_thread.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_url_request_context_adapter.cc
diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc
index 9e1ebfe059390cd22dc31f505f9920692b8065ce..b6a827cc82fd84daea1046f24c4406b070b9973c 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -61,6 +61,7 @@
#include "net/log/net_log_util.h"
#include "net/nqe/external_estimate_provider.h"
#include "net/nqe/network_qualities_prefs_manager.h"
+#include "net/nqe/network_quality_estimator_params.h"
#include "net/proxy/proxy_config_service_android.h"
#include "net/proxy/proxy_service.h"
#include "net/sdch/sdch_owner.h"
@@ -685,8 +686,9 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread(
variation_params["effective_connection_type_algorithm"] =
"TransportRTTOrDownstreamThroughput";
network_quality_estimator_ = base::MakeUnique<net::NetworkQualityEstimator>(
- std::unique_ptr<net::ExternalEstimateProvider>(), variation_params,
- false, false, g_net_log.Get().net_log());
+ std::unique_ptr<net::ExternalEstimateProvider>(),
+ base::MakeUnique<net::NetworkQualityEstimatorParams>(variation_params),
+ g_net_log.Get().net_log());
// Set the socket performance watcher factory so that network quality
// estimator is notified of socket performance metrics from TCP and QUIC.
context_builder.set_socket_performance_watcher_factory(
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | ios/chrome/browser/ios_chrome_io_thread.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698