Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 902683002: Remove usage of RenderViewHost which aren't needed anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static casts. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698