Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index c4e0cd99ea99340dd0a1c09db223a65b0e501053..becead43acae8308e4d32674f48dae40e7a53db1 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -1292,9 +1292,10 @@ scoped_ptr<net::HttpNetworkSession> ProfileIOData::CreateHttpNetworkSession( |
io_thread->InitializeNetworkSessionParams(¶ms); |
net::URLRequestContextBuilder::SetHttpNetworkSessionComponents(context, |
¶ms); |
- if (!IsOffTheRecord()) { |
+ if (!IsOffTheRecord() && io_thread->globals()->network_quality_estimator) { |
params.socket_performance_watcher_factory = |
- io_thread->globals()->network_quality_estimator.get(); |
+ io_thread->globals() |
+ ->network_quality_estimator->GetSocketPerformanceWatcherFactory(); |
mmenke
2016/04/05 15:45:38
If this is a global, should it be hooked up to the
tbansal1
2016/04/05 17:30:38
That makes sense. I should move this to URLRequest
|
} |
if (data_reduction_proxy_io_data_.get()) |
params.proxy_delegate = data_reduction_proxy_io_data_->proxy_delegate(); |