| Index: content/common/site_isolation_policy.cc
|
| diff --git a/content/common/site_isolation_policy.cc b/content/common/site_isolation_policy.cc
|
| index 694c9db3336be49465f81223f9f2f49e70575a07..e5ddb858f18f017afe667f6a24f976abc8497e5b 100644
|
| --- a/content/common/site_isolation_policy.cc
|
| +++ b/content/common/site_isolation_policy.cc
|
| @@ -15,8 +15,8 @@ namespace content {
|
|
|
| // static
|
| bool SiteIsolationPolicy::AreCrossProcessFramesPossible() {
|
| - return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kSitePerProcess) ||
|
| + return UseDedicatedProcessesForAllSites() ||
|
| + UseDedicatedProcessForTopDocument() ||
|
| GetContentClient()->IsSupplementarySiteIsolationModeEnabled() ||
|
| BrowserPluginGuestMode::UseCrossProcessFramesForGuests();
|
| }
|
| @@ -28,6 +28,12 @@ bool SiteIsolationPolicy::UseDedicatedProcessesForAllSites() {
|
| }
|
|
|
| // static
|
| +bool SiteIsolationPolicy::UseDedicatedProcessForTopDocument() {
|
| + return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kIsolateTopDocument);
|
| +}
|
| +
|
| +// static
|
| bool SiteIsolationPolicy::UseSubframeNavigationEntries() {
|
| // Enable the new navigation history behavior if any manner of site isolation
|
| // is active.
|
|
|