summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/guest_information.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/task_manager/guest_information.cc')
-rw-r--r--chrome/browser/task_manager/guest_information.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/task_manager/guest_information.cc b/chrome/browser/task_manager/guest_information.cc
index a71fe8b..63f1f7b 100644
--- a/chrome/browser/task_manager/guest_information.cc
+++ b/chrome/browser/task_manager/guest_information.cc
@@ -108,12 +108,10 @@ void GuestInformation::GetAll(const NewWebContentsCallback& callback) {
scoped_ptr<content::RenderWidgetHostIterator> widgets(
content::RenderWidgetHost::GetRenderWidgetHosts());
while (content::RenderWidgetHost* widget = widgets->GetNextHost()) {
- if (widget->IsRenderView()) {
- content::RenderViewHost* rvh = content::RenderViewHost::From(widget);
- WebContents* web_contents = WebContents::FromRenderViewHost(rvh);
- if (web_contents && GuestViewBase::IsGuest(web_contents))
- callback.Run(web_contents);
- }
+ content::RenderViewHost* rvh = content::RenderViewHost::From(widget);
+ WebContents* web_contents = WebContents::FromRenderViewHost(rvh);
+ if (web_contents && GuestViewBase::IsGuest(web_contents))
+ callback.Run(web_contents);
}
}