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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2396123002: Add IPC to notify BrowserPlugin when RenderProcess is ready. (Closed)
Patch Set: Fix comment typo. 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 | content/common/browser_plugin/browser_plugin_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index c518aca9d1e12121f0402d281f1b6ed274008429..fae7249bbff14c56dd9172dbc3f8d5d4602926e5 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -639,6 +639,14 @@ void BrowserPluginGuest::RenderViewReady() {
Send(new InputMsg_SetFocus(routing_id(), focused_));
UpdateVisibility();
+ // In case we've created a new guest render process after a crash, let the
+ // associated BrowserPlugin know. We only need to send this if we're attached,
+ // as guest_crashed_ is cleared automatically on attach anyways.
+ if (attached()) {
+ SendMessageToEmbedder(
+ new BrowserPluginMsg_GuestReady(browser_plugin_instance_id()));
+ }
+
RenderWidgetHostImpl::From(rvh->GetWidget())
->set_hung_renderer_delay(
base::TimeDelta::FromMilliseconds(kHungRendererDelayMs));
« no previous file with comments | « no previous file | content/common/browser_plugin/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698