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

Unified Diff: content/public/common/browser_plugin_guest_mode.cc

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing lazyboy@'s and lfg@'s comments Created 4 years, 5 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/common/browser_plugin_guest_mode.cc
diff --git a/content/public/common/browser_plugin_guest_mode.cc b/content/public/common/browser_plugin_guest_mode.cc
index 7c3986a3f2f0dccccd686c1fdc77c40e907051c0..5ae640590bf9912d3987d69fdbbef83f405653f4 100644
--- a/content/public/common/browser_plugin_guest_mode.cc
+++ b/content/public/common/browser_plugin_guest_mode.cc
@@ -5,6 +5,9 @@
#include "content/public/common/browser_plugin_guest_mode.h"
#include "base/command_line.h"
+#include "content/public/browser/browser_context.h"
+#include "content/public/browser/browser_plugin_guest_manager.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
namespace content {
@@ -15,4 +18,12 @@ bool BrowserPluginGuestMode::UseCrossProcessFramesForGuests() {
switches::kUseCrossProcessFramesForGuests);
}
+bool BrowserPluginGuestMode::UseCrossProcessFramesForWebContents(
+ content::WebContents* web_contents) {
+ return UseCrossProcessFramesForGuests() &&
+ !web_contents->GetBrowserContext()
+ ->GetGuestManager()
+ ->IsForMimeHandlerViewGuest(web_contents);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698