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)))); }