Revert "Fix potential dangling PendingRequest::request_ (see #3239)"

This reverts commit 47798d3dbf.

It doesn't appear to have fixed the issue (see #3717).
This commit is contained in:
Marshall Greenblatt 2024-06-18 15:40:46 -04:00
parent ecbe1244cb
commit 64eb12c9c4
1 changed files with 1 additions and 2 deletions

View File

@ -140,11 +140,10 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
void Run(InterceptedRequestHandlerWrapper* self) {
self->OnBeforeRequest(id_, request_, request_was_redirected_,
std::move(callback_), std::move(cancel_callback_));
request_ = nullptr;
}
const int32_t id_;
raw_ptr<network::ResourceRequest> request_;
const raw_ptr<network::ResourceRequest> request_;
const bool request_was_redirected_;
OnBeforeRequestResultCallback callback_;
CancelRequestCallback cancel_callback_;