Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
| index 91456a9d107449be3808a62875fb593fa4b58cbc..90f0d1f784972caf1a038d5a06fc3fb0de895086 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.cc |
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc |
| @@ -1242,10 +1242,20 @@ void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, |
| // We need to at least make sure that the RenderProcessHost is notified about |
| // the |is_hidden_| change, so that the renderer will have correct visibility |
| // set when respawned. |
| + // |
| + // http://crbug.com/522795 : On Android, we assume dead RenderWidgetHost to be |
| + // invisible to correctly keep the priority of a restored renderer. |
| +#if defined(OS_ANDROID) |
|
no sievers
2015/09/04 16:18:03
We don't need the ifdef, since the your change for
Jaekyun Seok (inactive)
2015/09/07 07:40:04
Done.
|
| + if (!is_hidden_) { |
| + process_->WidgetHidden(); |
| + is_hidden_ = true; |
| + } |
| +#else |
| if (is_hidden_) { |
| process_->WidgetRestored(); |
| is_hidden_ = false; |
| } |
| +#endif |
| // Reset this to ensure the hung renderer mechanism is working properly. |
| in_flight_event_count_ = 0; |