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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2454833002: Fix RenderFrameHost's Mojo objects not being recreated after a process crash. (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index f1770ffec0e8af3d51c9621d723bd1ba0e3b081d..57009414578d92ce6456356a77f4e62ae854c4c2 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -916,10 +916,12 @@ void RenderFrameHostImpl::SetRenderFrameCreated(bool created) {
// If the current status is different than the new status, the delegate
// needs to be notified.
if (delegate_ && (created != was_created)) {
- if (created)
+ if (created) {
+ SetUpMojoIfNeeded();
delegate_->RenderFrameCreated(this);
- else
+ } else {
delegate_->RenderFrameDeleted(this);
+ }
}
if (created && render_widget_host_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698