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

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

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Setting embedder frame id when the MimeHandlerViewGuest is created. 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();
+ return nullptr;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698