Index: content/shell/browser/shell.cc |
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc |
index 0e8b8b731fa333e89b3bdec3259aeb3cb2acc1e1..0b5d8d9c4772e14b73c7e3ae6fedd1784e9a19c7 100644 |
--- a/content/shell/browser/shell.cc |
+++ b/content/shell/browser/shell.cc |
@@ -20,6 +20,7 @@ |
#include "content/public/browser/render_widget_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 "content/public/common/content_switches.h" |
#include "content/public/common/renderer_preferences.h" |
#include "content/public/common/webrtc_ip_handling_policy.h" |
@@ -173,6 +174,7 @@ Shell* Shell::CreateNewWindow(BrowserContext* browser_context, |
WebContents::CreateParams create_params(browser_context, site_instance); |
create_params.initial_size = AdjustWindowSize(initial_size); |
WebContents* web_contents = WebContents::Create(create_params); |
+ WebContentsSource::CreateForWebContentsAndLocation(web_contents, FROM_HERE); |
Shell* shell = CreateShell(web_contents, create_params.initial_size); |
if (!url.is_empty()) |
shell->LoadURL(url); |