Remove incorrect DCHECK

There are valid cases where |frame_tree_node_id| may not match the node ID
reported by the selected RenderFrameHost.
This commit is contained in:
Marshall Greenblatt 2019-10-18 14:05:53 +02:00
parent 737ff18498
commit 01e75761d3
1 changed files with 0 additions and 7 deletions

View File

@ -1224,13 +1224,6 @@ void InitOnUIThread(
// |frame| may be null for service worker requests. // |frame| may be null for service worker requests.
if (frame) { if (frame) {
#if DCHECK_IS_ON()
if (frame_tree_node_id >= 0) {
// Sanity check that we ended up with the expected frame.
DCHECK_EQ(frame_tree_node_id, frame->GetFrameTreeNodeId());
}
#endif
// May return nullptr for requests originating from guest views. // May return nullptr for requests originating from guest views.
browserPtr = CefBrowserHostImpl::GetBrowserForHost(frame); browserPtr = CefBrowserHostImpl::GetBrowserForHost(frame);
if (browserPtr) { if (browserPtr) {