Index: content/browser/frame_host/render_widget_host_view_child_frame.cc |
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
index 30591a80d856865ec0947756e74b2885717fc9af..8e1aff869acb5b2e4f52f125d17213696ef76299 100644 |
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc |
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc |
@@ -4,7 +4,6 @@ |
#include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
-#include "base/command_line.h" |
#include "cc/surfaces/surface.h" |
#include "cc/surfaces/surface_factory.h" |
#include "cc/surfaces/surface_manager.h" |
@@ -19,7 +18,7 @@ |
#include "content/common/gpu/gpu_messages.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/render_process_host.h" |
-#include "content/public/common/content_switches.h" |
+#include "content/public/common/site_isolation_policy.h" |
namespace content { |
@@ -160,8 +159,7 @@ void RenderWidgetHostViewChildFrame::SetIsLoading(bool is_loading) { |
// is a RenderWidgetHostViewChildFrame. In contrast, when there is no |
// inner/outer WebContents, only subframe's RenderWidgetHostView can be a |
// RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. |
- if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSitePerProcess) && |
+ if (SiteIsolationPolicy::GuestsShouldUseCrossProcessFrames() && |
BrowserPluginGuest::IsGuest( |
static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { |
return; |