Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 22a300ab739df195913e2c7693fd422a3477a12d..8b315aaddce6ce209e857cbe9531a68daf17648e 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -46,6 +46,7 @@ |
#include "content/common/inter_process_time_ticks_converter.h" |
#include "content/common/navigation_params.h" |
#include "content/common/render_frame_setup.mojom.h" |
+#include "content/common/site_isolation_policy.h" |
#include "content/common/swapped_out_messages.h" |
#include "content/public/browser/ax_event_notification_details.h" |
#include "content/public/browser/browser_accessibility_state.h" |
@@ -1317,8 +1318,7 @@ void RenderFrameHostImpl::OnBeginNavigation( |
} |
void RenderFrameHostImpl::OnDispatchLoad() { |
- CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSitePerProcess)); |
+ CHECK(SiteIsolationPolicy::AreCrossProcessFramesPossible()); |
// Only frames with an out-of-process parent frame should be sending this |
// message. |
RenderFrameProxyHost* proxy = |