Should also destory RemoteCallbackFreer when page is reloaded

This commit is contained in:
Cheng Zhao 2016-04-26 16:30:26 +09:00
parent 06cf0406fe
commit d9778413e1
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ void RemoteCallbackFreer::RunDestructor() {
web_contents_ = nullptr;
}
void RemoteCallbackFreer::WebContentsDestroyed() {
void RemoteCallbackFreer::RenderViewDeleted(content::RenderViewHost*) {
if (!web_contents_)
return;

View file

@ -27,7 +27,7 @@ class RemoteCallbackFreer : public ObjectLifeMonitor,
void RunDestructor() override;
// content::WebContentsObserver:
void WebContentsDestroyed() override;
void RenderViewDeleted(content::RenderViewHost*) override;
private:
int GetRendererProcessID();