Index: chromecast/browser/cast_content_window.cc |
diff --git a/chromecast/browser/cast_content_window.cc b/chromecast/browser/cast_content_window.cc |
index aa3d6837e318f8aa22df69780555d35820f3076e..a26b08d0278fbc985b16339cae13b051a1881984 100644 |
--- a/chromecast/browser/cast_content_window.cc |
+++ b/chromecast/browser/cast_content_window.cc |
@@ -12,6 +12,7 @@ |
#include "content/public/browser/render_widget_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_contents_source.h" |
#include "ipc/ipc_message.h" |
#if defined(USE_AURA) |
@@ -114,6 +115,7 @@ scoped_ptr<content::WebContents> CastContentWindow::CreateWebContents( |
create_params.initial_size = initial_size; |
content::WebContents* web_contents = content::WebContents::Create( |
create_params); |
+ WebContentsSource::CreateForWebContentsAndLocation(web_contents, FROM_HERE); |
halliwell
2015/11/11 14:14:31
Think you can revert this file, your crash isn't i
hcarmona
2015/11/11 19:57:58
Done.
|
content::WebContentsObserver::Observe(web_contents); |
return make_scoped_ptr(web_contents); |
} |