| Index: content/browser/frame_host/navigator_impl.cc
|
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
|
| index ebd10e9739d85a3dbb38636447002fd1893e0df6..222eba12649f28f60475b828286e263d25aa74ef 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -264,9 +264,7 @@ void NavigatorImpl::DidStartProvisionalLoad(
|
| true /* is_renderer_initiated */,
|
| std::string(),
|
| controller_->GetBrowserContext()));
|
| - entry->set_site_instance(
|
| - static_cast<SiteInstanceImpl*>(
|
| - render_frame_host->render_view_host()->GetSiteInstance()));
|
| + entry->set_site_instance(render_frame_host->GetSiteInstance());
|
| // TODO(creis): If there's a pending entry already, find a safe way to
|
| // update it instead of replacing it and copying over things like this.
|
| if (pending_entry) {
|
| @@ -567,8 +565,7 @@ void NavigatorImpl::DidNavigate(
|
| // assigning a site is not necessary for this URL. In that case, the
|
| // SiteInstance can still be considered unused until a navigation to a real
|
| // page.
|
| - SiteInstanceImpl* site_instance =
|
| - static_cast<SiteInstanceImpl*>(render_frame_host->GetSiteInstance());
|
| + SiteInstanceImpl* site_instance = render_frame_host->GetSiteInstance();
|
| if (!site_instance->HasSite() &&
|
| ShouldAssignSiteForURL(params.url)) {
|
| site_instance->SetSite(params.url);
|
|
|