diff --git a/components/tor/tor_profile_service_impl.cc b/components/tor/tor_profile_service_impl.cc index 6c4f53dce8abf..66bb04f5ef702 100644 --- a/components/tor/tor_profile_service_impl.cc +++ b/components/tor/tor_profile_service_impl.cc @@ -83,10 +83,8 @@ class TorProxyLookupClient : public network::mojom::ProxyLookupClient { mojo::PendingRemote GetProxyLookupClient() { mojo::PendingRemote pending_remote = - receiver_.BindNewPipeAndPassRemote( - base::ThreadPool::CreateSingleThreadTaskRunner( - {content::BrowserThread::UI, - content::BrowserTaskType::kPreconnect})); + receiver_.BindNewPipeAndPassRemote(content::GetUIThreadTaskRunner( + {content::BrowserTaskType::kPreconnect})); receiver_.set_disconnect_handler(base::BindOnce( &TorProxyLookupClient::OnProxyLookupComplete, base::Unretained(this), net::ERR_ABORTED, absl::nullopt));