Should also destory RemoteCallbackFreer when page is reloaded
This commit is contained in:
parent
06cf0406fe
commit
d9778413e1
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ void RemoteCallbackFreer::RunDestructor() {
|
|||
web_contents_ = nullptr;
|
||||
}
|
||||
|
||||
void RemoteCallbackFreer::WebContentsDestroyed() {
|
||||
void RemoteCallbackFreer::RenderViewDeleted(content::RenderViewHost*) {
|
||||
if (!web_contents_)
|
||||
return;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class RemoteCallbackFreer : public ObjectLifeMonitor,
|
|||
void RunDestructor() override;
|
||||
|
||||
// content::WebContentsObserver:
|
||||
void WebContentsDestroyed() override;
|
||||
void RenderViewDeleted(content::RenderViewHost*) override;
|
||||
|
||||
private:
|
||||
int GetRendererProcessID();
|
||||
|
|
Loading…
Reference in a new issue