Skip to content

Commit

Permalink
Issue 6193: Run all request callbacks synchronously.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Efremov authored and bsclifton committed Oct 3, 2019
1 parent 74d24d6 commit 50750cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions browser/net/brave_request_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ int BraveRequestHandler::OnHeadersReceived(
ctx->override_response_headers = override_response_headers;
ctx->allowed_unsafe_redirect_url = allowed_unsafe_redirect_url;

base::PostTaskWithTraits(FROM_HERE, {content::BrowserThread::UI},
base::Bind(&BraveRequestHandler::RunNextCallback,
weak_factory_.GetWeakPtr(),
ctx));
RunNextCallback(ctx);
return net::ERR_IO_PENDING;
}

Expand Down

0 comments on commit 50750cd

Please sign in to comment.