Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: content/public/browser/browser_plugin_guest_delegate.cc

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698