Commit eb89e51d authored by nasko@chromium.org's avatar nasko@chromium.org

Check for NULL frame tree root.

BUG=240295

Review URL: https://chromiumcodereview.appspot.com/16325021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204096 0039d316-1c4b-4281-b951-d872f2087c98
parent 2132d6bb
...@@ -2529,6 +2529,11 @@ void WebContentsImpl::OnUpdateFaviconURL( ...@@ -2529,6 +2529,11 @@ void WebContentsImpl::OnUpdateFaviconURL(
} }
FrameTreeNode* WebContentsImpl::FindFrameTreeNodeByID(int64 frame_id) { FrameTreeNode* WebContentsImpl::FindFrameTreeNodeByID(int64 frame_id) {
// TODO(nasko): Remove this check once we move to creating the root node
// through RenderFrameHost creation.
if (!frame_tree_root_.get())
return NULL;
FrameTreeNode* node = NULL; FrameTreeNode* node = NULL;
std::queue<FrameTreeNode*> queue; std::queue<FrameTreeNode*> queue;
queue.push(frame_tree_root_.get()); queue.push(frame_tree_root_.get());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment