| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
horo@ for `resource_request_sender` changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgmt
} else {
request_info_->url_loader->FollowRedirect(
std::move(request_info_->headers_update_params));
request_info_->headers_update_params.Clear();Not directly related to this code change, but I’m slightly concerned that modifying request_info_ after the FollowRedirect() call might lead to a if this (or request_info_) is deleted during that call.
Although it makes the code a bit longer, it might be safer to extract and clear the parameters before the call to avoid any lifetime concerns:
```
auto headers_update_params = std::move(request_info_->headers_update_params);
request_info_->headers_update_params.Clear();
request_info_->url_loader->FollowRedirect(std::move(headers_update_params));
```
That said, I don't have a strong opinion on this, so please feel free to handle it as you prefer, Hayashizaki-san.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
} else {
request_info_->url_loader->FollowRedirect(
std::move(request_info_->headers_update_params));
request_info_->headers_update_params.Clear();Not directly related to this code change, but I’m slightly concerned that modifying request_info_ after the FollowRedirect() call might lead to a if this (or request_info_) is deleted during that call.
Although it makes the code a bit longer, it might be safer to extract and clear the parameters before the call to avoid any lifetime concerns:
```
auto headers_update_params = std::move(request_info_->headers_update_params);
request_info_->headers_update_params.Clear();
request_info_->url_loader->FollowRedirect(std::move(headers_update_params));
```That said, I don't have a strong opinion on this, so please feel free to handle it as you prefer, Hayashizaki-san.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
+@nhiroki for content/browser/worker_host/worker_script_fetcher.cc OWNER.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
12 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Use HttpRequestHeadersUpdateParams in ThrottlingURLLoader::FollowRedirect()
Follow-up of https://crrev.com/c/7835601 that introduced
`network::HttpRequestHeadersUpdateParams`.
This CL also introduces `HttpRequestHeadersUpdateParams::MergeFrom()`
and `HttpRequestHeadersUpdateParams::Clear()`.
This CL shouldn't change the behavior (except for minor removal of
`std::string` copying in `ThrottlingURLLoader::MergeRequestHeaders()`,
which doesn't change the functional behavior).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |