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 ea985e40fc730d2017aba1a831f23f958ff60a02..bf144ecd7b1c35e1d5a629f884591d9ba67b00e1 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -311,7 +311,8 @@ scoped_ptr<RenderWidgetHostIterator> RenderWidgetHost::GetRenderWidgetHosts() { |
// Add only active RenderViewHosts. |
RenderViewHost* rvh = RenderViewHost::From(widget); |
- if (!static_cast<RenderViewHostImpl*>(rvh)->is_swapped_out()) |
+ if (RenderViewHostImpl::IsRVHStateActive( |
+ static_cast<RenderViewHostImpl*>(rvh)->rvh_state())) |
hosts->Add(widget); |
} |