Index: chrome/browser/guest_view/guest_view_manager.cc |
diff --git a/chrome/browser/guest_view/guest_view_manager.cc b/chrome/browser/guest_view/guest_view_manager.cc |
index b0b1ef189323177b7e441f1ef040f114fca0d3e6..833123f4be4954d9a877688aa32d7e7293d5daf3 100644 |
--- a/chrome/browser/guest_view/guest_view_manager.cc |
+++ b/chrome/browser/guest_view/guest_view_manager.cc |
@@ -178,7 +178,8 @@ bool GuestViewManager::ForEachGuest(WebContents* embedder_web_contents, |
guest_web_contents_by_instance_id_.begin(); |
it != guest_web_contents_by_instance_id_.end(); ++it) { |
WebContents* guest = it->second; |
- if (embedder_web_contents != guest->GetEmbedderWebContents()) |
+ GuestViewBase* guest_view = GuestViewBase::FromWebContents(guest); |
+ if (embedder_web_contents != guest_view->embedder_web_contents()) |
continue; |
if (callback.Run(guest)) |
@@ -272,7 +273,7 @@ bool GuestViewManager::CanEmbedderAccessGuest(int embedder_render_process_id, |
return false; |
return embedder_render_process_id == |
- guest->GetOpener()->GetEmbedderWebContents()->GetRenderProcessHost()-> |
+ guest->GetOpener()->embedder_web_contents()->GetRenderProcessHost()-> |
GetID(); |
} |