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

Unified Diff: components/dom_distiller/content/browser/distiller_page_web_contents.cc

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: components/dom_distiller/content/browser/distiller_page_web_contents.cc
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents.cc b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
index 117e01f509549d24cfe51bd78fb9e6c4fac3c783..b715d187ea1c6376859728fbc9b73a2f5605da84 100644
--- a/components/dom_distiller/content/browser/distiller_page_web_contents.cc
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents.cc
@@ -19,6 +19,7 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
+#include "content/public/browser/web_contents_source.h"
#include "ui/gfx/screen.h"
#include "url/gurl.h"
@@ -119,6 +120,7 @@ void DistillerPageWebContents::CreateNewWebContents(const GURL& url) {
create_params.initially_hidden = true;
content::WebContents* web_contents =
content::WebContents::Create(create_params);
+ WebContentsSource::CreateForWebContentsAndLocation(web_contents, FROM_HERE);
DCHECK(web_contents);
web_contents->SetDelegate(this);

Powered by Google App Engine
This is Rietveld 408576698