Skip to content

Commit

Permalink
Merge pull request #13775 from brave/fix-tor-proxy-task-runner
Browse files Browse the repository at this point in the history
Fix browser crash when setting new Tor connection circuit
  • Loading branch information
emerick committed Jun 14, 2022
1 parent ffce1c6 commit 3ec217a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/tor/tor_profile_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ class TorProxyLookupClient : public network::mojom::ProxyLookupClient {
mojo::PendingRemote<network::mojom::ProxyLookupClient>
GetProxyLookupClient() {
mojo::PendingRemote<network::mojom::ProxyLookupClient> 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));
Expand Down

0 comments on commit 3ec217a

Please sign in to comment.