Chromium Code Reviews| Index: content/public/browser/browser_plugin_guest_delegate.cc |
| diff --git a/content/public/browser/browser_plugin_guest_delegate.cc b/content/public/browser/browser_plugin_guest_delegate.cc |
| index 732df238f91431509e6f998d56cc1508e9a0bdf3..affcdfb858bc3d8f53e3c7ed58d2757b23509354 100644 |
| --- a/content/public/browser/browser_plugin_guest_delegate.cc |
| +++ b/content/public/browser/browser_plugin_guest_delegate.cc |
| @@ -36,4 +36,10 @@ bool BrowserPluginGuestDelegate::CanUseCrossProcessFrames() { |
| return true; |
| } |
| +RenderFrameHost* BrowserPluginGuestDelegate::GetEmbedderFrame() { |
| + if (GetOwnerWebContents()) |
| + return GetOwnerWebContents()->GetMainFrame(); |
|
nasko
2016/10/27 21:03:40
Why return the main frame here? Isn't this suppose
EhsanK
2016/10/27 22:06:48
The only way we can have A->B->C->GuestView right
nasko
2016/11/09 01:13:07
Why not? I don't think we have any code restrictio
EhsanK
2016/11/15 19:54:22
I double checked and as you said three is ways to
Charlie Reis
2016/11/15 23:45:32
This seems wrong to me. We shouldn't be returning
|
| + return nullptr; |
| +} |
| + |
| } // namespace content |