From 82c30ef9b992179db1a4655afab74b274a4ff7c3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 9 Mar 2016 18:47:11 +0900 Subject: [PATCH] Fix RenderFrameHostChanged --- brightray/browser/inspectable_web_contents_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 4065053b1ae0..8217812b58c7 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -573,7 +573,7 @@ void InspectableWebContentsImpl::RenderFrameHostChanged( if (new_host->GetParent()) return; frontend_host_.reset(content::DevToolsFrontendHost::Create( - web_contents_->GetMainFrame(), + new_host, base::Bind(&InspectableWebContentsImpl::HandleMessageFromDevToolsFrontend, base::Unretained(this)))); }