Skip to content

Commit

Permalink
create new SiteInstance when using new_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Cong Liu committed Aug 5, 2016
1 parent 143aee6 commit a0aa609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/browser/app_window/app_window_contents.cc
Expand Up @@ -35,7 +35,7 @@ void AppWindowContentsImpl::Initialize(content::BrowserContext* context,
url_ = url;

content::WebContents::CreateParams create_params(
context, creator_frame->GetSiteInstance());
context, nw::PinningRenderer() ? creator_frame->GetSiteInstance() : content::SiteInstance::CreateForURL(context, url_));
create_params.opener_render_process_id = creator_frame->GetProcess()->GetID();
create_params.opener_render_frame_id = creator_frame->GetRoutingID();
if (!web_contents_)
Expand Down

0 comments on commit a0aa609

Please sign in to comment.