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

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

Issue 1799163002: Remove swapped out state from RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 5e33ea948ba39bddc3c137b822d662eb54cd7faf..4bc2f829177cf2dcb59fc3b821cbec2b74d61954 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -619,8 +619,7 @@ void NavigatorImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host,
SiteInstance* current_site_instance = render_frame_host->frame_tree_node()
->current_frame_host()
->GetSiteInstance();
- if (render_frame_host->is_swapped_out() &&
- !render_frame_host->GetSiteInstance()->IsRelatedSiteInstance(
+ if (!render_frame_host->GetSiteInstance()->IsRelatedSiteInstance(
Charlie Reis 2016/03/14 20:12:57 This looks wrong. Before this block was unreachab
nasko 2016/03/14 21:32:30 Ah, good point. We don't need the check overall, a
current_site_instance)) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698