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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index ccadfb2dd064e1bbb6b946cd04e94266c938a7cf..960a0246ee72e44b814e2d9f7672c64c8c3a2ffb 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1391,6 +1391,8 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
WebContentsViewDelegate* delegate =
GetContentClient()->browser()->GetWebContentsViewDelegate(this);
+ CreateBrowserPluginEmbedderIfNecessary();
+
#if defined(MOJO_SHELL_CLIENT)
if (MojoShellConnection::Get() &&
base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -3498,8 +3500,6 @@ void WebContentsImpl::OnPpapiBrokerPermissionResult(int routing_id,
void WebContentsImpl::OnBrowserPluginMessage(RenderFrameHost* render_frame_host,
const IPC::Message& message) {
- CHECK(!browser_plugin_embedder_.get());
- CreateBrowserPluginEmbedderIfNecessary();
browser_plugin_embedder_->OnMessageReceived(message, render_frame_host);
}
#endif // defined(ENABLE_PLUGINS)
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | content/common/android/sync_compositor_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698