fix: hold browser_context instead of render_frame_host to fix lifetime issues (#23271)
This commit is contained in:
parent
c438b93f18
commit
94eb4ce38e
2 changed files with 8 additions and 6 deletions
|
@ -9,7 +9,8 @@
|
|||
|
||||
namespace content {
|
||||
class RenderFrameHost;
|
||||
}
|
||||
class BrowserContext;
|
||||
} // namespace content
|
||||
|
||||
class NetworkHintsHandlerImpl
|
||||
: public network_hints::SimpleNetworkHintsHandlerImpl {
|
||||
|
@ -27,7 +28,7 @@ class NetworkHintsHandlerImpl
|
|||
private:
|
||||
explicit NetworkHintsHandlerImpl(content::RenderFrameHost*);
|
||||
|
||||
content::RenderFrameHost* render_frame_host_ = nullptr;
|
||||
content::BrowserContext* browser_context_ = nullptr;
|
||||
};
|
||||
|
||||
#endif // SHELL_BROWSER_NETWORK_HINTS_HANDLER_IMPL_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue