Chromium Code Reviews| 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..f875200a8e52cbf0ebf77ba0c9e2ade65e95ffad 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 the guest_crashed_ is cleared automaticall on attach anyways. |
|
kenrb
2016/10/07 15:41:13
nit: typo 'automaticall'
|
| + if (attached()) { |
| + SendMessageToEmbedder( |
| + new BrowserPluginMsg_GuestReady(browser_plugin_instance_id())); |
| + } |
| + |
| RenderWidgetHostImpl::From(rvh->GetWidget()) |
| ->set_hung_renderer_delay( |
| base::TimeDelta::FromMilliseconds(kHungRendererDelayMs)); |