| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hello Michael, PTAL at `components/optimization_guide/content/browser/*`, thanks
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| 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. |
content::RenderFrameHost* rfh) {The fact that this is a pointer means that the memory could be released before the pointer is used. Can we either pass a safe pointer or a reference? I know that right now this is just called by PageContentMetadataObserver where we know that rfh exists, but I'm worried about a possible future case where the caller might be passing a dangling pointer.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The fact that this is a pointer means that the memory could be released before the pointer is used. Can we either pass a safe pointer or a reference? I know that right now this is just called by PageContentMetadataObserver where we know that rfh exists, but I'm worried about a possible future case where the caller might be passing a dangling pointer.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
content::RenderFrameHost* rfh) {Ahmed MoussaThe fact that this is a pointer means that the memory could be released before the pointer is used. Can we either pass a safe pointer or a reference? I know that right now this is just called by PageContentMetadataObserver where we know that rfh exists, but I'm worried about a possible future case where the caller might be passing a dangling pointer.
Done
Sorry for churn--I see now that the rfh pointer is passed around everywhere else in this file. So I think you can actually do what you want with respect to pointer vs reference; if you want to change it back to pointer that's fine.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
content::RenderFrameHost* rfh) {Ahmed MoussaThe fact that this is a pointer means that the memory could be released before the pointer is used. Can we either pass a safe pointer or a reference? I know that right now this is just called by PageContentMetadataObserver where we know that rfh exists, but I'm worried about a possible future case where the caller might be passing a dangling pointer.
Abigail KleinDone
Sorry for churn--I see now that the rfh pointer is passed around everywhere else in this file. So I think you can actually do what you want with respect to pointer vs reference; if you want to change it back to pointer that's fine.
| 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. |
Add HasTranscriptsForFrame() to avoid un-needed copies of transcripts
Change page_content_metadata_observer to call HasTranscriptsForFrame()
instead of GetTranscriptsForFrame() to avoid un-needed copies of
transcripts.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |