summaryrefslogtreecommitdiffstats
path: root/content/shell/shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell.cc')
-rw-r--r--content/shell/shell.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/content/shell/shell.cc b/content/shell/shell.cc
index 69bf163..fd27d15 100644
--- a/content/shell/shell.cc
+++ b/content/shell/shell.cc
@@ -114,11 +114,10 @@ Shell* Shell::CreateNewWindow(BrowserContext* browser_context,
SiteInstance* site_instance,
int routing_id,
WebContents* base_web_contents) {
- WebContents* web_contents = WebContents::Create(
- browser_context,
- site_instance,
- routing_id,
- base_web_contents);
+ WebContents::CreateParams create_params(browser_context, site_instance);
+ create_params.routing_id = routing_id;
+ create_params.base_web_contents = base_web_contents;
+ WebContents* web_contents = WebContents::Create(create_params);
Shell* shell = CreateShell(web_contents);
if (!url.is_empty())
shell->LoadURL(url);