static bool ShouldPreload(const Document* document,Olivier LiBlink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. To improve readability and type safety, consider using a `base::StrongAlias` for the `no_defer` parameter, for example: `using NoDefer = base::StrongAlias<class NoDeferTag, bool>;`.
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reasonThis comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Acknowledged
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return ShouldPreload(document_, preload->GetResourceType(),Should this return true when `preload->IsPreconnect()`, so that we don't filter out preconnect requests? Those are fulfilled by HTMLResourcePreloader::Preload even if AllowPreloadRequest() returns false.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
static bool ShouldPreload(const Document* document,Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. To improve readability and type safety, consider using a `base::StrongAlias` for the `no_defer` parameter, for example: `using NoDefer = base::StrongAlias<class NoDeferTag, bool>;`.
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reasonThis comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Done
return ShouldPreload(document_, preload->GetResourceType(),Should this return true when `preload->IsPreconnect()`, so that we don't filter out preconnect requests? Those are fulfilled by HTMLResourcePreloader::Preload even if AllowPreloadRequest() returns false.
oh that's a good point, thanks for catching this. I've added a `is_preconnect` check.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |