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

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

Issue 293093010: Rename RenderProcessHost::IsGuest to RenderProcessHost::IsIsolatedGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_isguest_chrome_callsites
Patch Set: Fixed interactive_ui_tests build Created 6 years, 7 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/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index d8a4579d72d60c37772420f9d4bb132f08f3302d..54691513c4e6440fbb327cd921af88d3d5f09d5f 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -338,9 +338,9 @@ void NavigationControllerImpl::ReloadInternal(bool check_for_repost,
// instance, and should not be treated as a cross-site reload.
SiteInstanceImpl* site_instance = entry->site_instance();
// Permit reloading guests without further checks.
- bool is_guest = site_instance && site_instance->HasProcess() &&
- site_instance->GetProcess()->IsGuest();
- if (!is_guest && site_instance &&
+ bool is_isolated_guest = site_instance && site_instance->HasProcess() &&
+ site_instance->GetProcess()->IsIsolatedGuest();
+ if (!is_isolated_guest && site_instance &&
site_instance->HasWrongProcessForURL(entry->GetURL())) {
// Create a navigation entry that resembles the current one, but do not
// copy page id, site instance, content state, or timestamp.

Powered by Google App Engine
This is Rietveld 408576698