Chromium Code Reviews| 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 fc88f1b673f2fae0d33f884a7931b7fb20748d12..24b6202b043c12f2fa2912618ce3b19dfb718bab 100644 |
| --- a/components/cronet/android/cronet_url_request_context_adapter.cc |
| +++ b/components/cronet/android/cronet_url_request_context_adapter.cc |
| @@ -29,6 +29,7 @@ |
| #include "base/metrics/histogram_macros.h" |
| #include "base/metrics/statistics_recorder.h" |
| #include "base/single_thread_task_runner.h" |
| +#include "base/threading/thread_task_runner_handle.h" |
| #include "base/time/time.h" |
| #include "base/values.h" |
| #include "components/cronet/android/cert/cert_verifier_cache_serializer.h" |
| @@ -593,7 +594,7 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread( |
| std::unique_ptr<net::HttpServerPropertiesManager> |
| http_server_properties_manager(new net::HttpServerPropertiesManager( |
| new PrefServiceAdapter(pref_service_.get()), |
| - GetNetworkTaskRunner())); |
| + base::ThreadTaskRunnerHandle::Get(), GetNetworkTaskRunner())); |
|
xunjieli
2016/12/14 01:47:11
Hmm.. This method is invoked on the network thread
Zhongyi Shi
2016/12/14 04:20:43
Yeah, this CL shouldn't introduce functional chang
xunjieli
2016/12/14 18:49:38
I think the bug might be in HttpServerPropertiesMa
Zhongyi Shi
2016/12/14 19:47:24
If you look at the HttpServerPropertiesManager doc
|
| http_server_properties_manager->InitializeOnNetworkThread(); |
| http_server_properties_manager_ = http_server_properties_manager.get(); |
| context_builder.SetHttpServerProperties( |