Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2418963002: Don't abort the MimeHandlerStreamManager stream if we receive a RenderProcessHostChanged notificati… (Closed)
Patch Set: Add a check for whether the routing id and the pid of the old host is the same as the pair in Embed… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 7cb552bb0560ff31b2017a15d23a51fa9ea36289..86feffed5f39186eb1476c97f438fc631d70178b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -308,6 +308,8 @@ WebContents* WebContents::FromRenderFrameHost(RenderFrameHost* rfh) {
WebContents* WebContents::FromFrameTreeNodeId(int frame_tree_node_id) {
FrameTreeNode* frame_tree_node =
FrameTreeNode::GloballyFindByID(frame_tree_node_id);
+ if (!frame_tree_node)
+ return nullptr;
return FromRenderFrameHost(frame_tree_node->current_frame_host());
}
« no previous file with comments | « no previous file | extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698