Fix RenderFrameHostChanged

This commit is contained in:
Cheng Zhao 2016-03-09 18:47:11 +09:00
parent ead0bb0cfc
commit 82c30ef9b9

View file

@ -573,7 +573,7 @@ void InspectableWebContentsImpl::RenderFrameHostChanged(
if (new_host->GetParent()) if (new_host->GetParent())
return; return;
frontend_host_.reset(content::DevToolsFrontendHost::Create( frontend_host_.reset(content::DevToolsFrontendHost::Create(
web_contents_->GetMainFrame(), new_host,
base::Bind(&InspectableWebContentsImpl::HandleMessageFromDevToolsFrontend, base::Bind(&InspectableWebContentsImpl::HandleMessageFromDevToolsFrontend,
base::Unretained(this)))); base::Unretained(this))));
} }