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

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

Issue 769363002: Initialize BrowserPluginGuest to attach to the View hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basic_detach_plumbing
Patch Set: Don't initialize by default Created 6 years 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 4a738e6ac1d7f07b483b88869c78425e97058adf..f57a9d30155626361c211814a07f5ee32f971a74 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1196,6 +1196,9 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
#if defined(OS_ANDROID)
date_time_chooser_.reset(new DateTimeChooserAndroid());
#endif
+
+ if (browser_plugin_guest_)
lazyboy 2014/12/04 16:51:13 You need to run Init() after |view_->CreateView()|
Fady Samuel 2014/12/04 20:54:44 Done.
+ browser_plugin_guest_->Init();
}
void WebContentsImpl::OnWebContentsDestroyed(WebContentsImpl* web_contents) {

Powered by Google App Engine
This is Rietveld 408576698