diff options
Diffstat (limited to 'chrome/browser/memory_details.cc')
-rw-r--r-- | chrome/browser/memory_details.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc index 3237eb7..04b248a 100644 --- a/chrome/browser/memory_details.cc +++ b/chrome/browser/memory_details.cc @@ -194,15 +194,10 @@ void MemoryDetails::CollectChildInfoOnUIThread() { // The RenderProcessHost may host multiple TabContents. Any // of them which contain diagnostics information make the whole // process be considered a diagnostics process. - // - // NOTE: This is a bit dangerous. We know that for now, listeners - // are always RenderWidgetHosts. But in theory, they don't - // have to be. - content::RenderProcessHost::listeners_iterator iter( - render_process_host->ListenersIterator()); + content::RenderProcessHost::RenderWidgetHostsIterator iter( + render_process_host->GetRenderWidgetHostsIterator()); for (; !iter.IsAtEnd(); iter.Advance()) { - const RenderWidgetHost* widget = - RenderWidgetHost::FromIPCChannelListener(iter.GetCurrentValue()); + const RenderWidgetHost* widget = iter.GetCurrentValue(); DCHECK(widget); if (!widget || !widget->IsRenderView()) continue; |