| Index: content/common/site_isolation_policy.cc
|
| diff --git a/content/common/site_isolation_policy.cc b/content/common/site_isolation_policy.cc
|
| index a1607c84caf590d76586f467d1c0f2ff9867fb3a..b3db97ede58b4a304fa8f37b0a76786b1d864658 100644
|
| --- a/content/common/site_isolation_policy.cc
|
| +++ b/content/common/site_isolation_policy.cc
|
| @@ -5,13 +5,26 @@
|
| #include "content/common/site_isolation_policy.h"
|
|
|
| #include "base/command_line.h"
|
| +#include "base/feature_list.h"
|
| +#include "content/public/common/content_client.h"
|
| +#include "content/public/common/content_features.h"
|
| #include "content/public/common/content_switches.h"
|
|
|
| namespace content {
|
|
|
| // static
|
| bool SiteIsolationPolicy::AreCrossProcessFramesPossible() {
|
| +// Before turning this on for Android, input event routing needs to be
|
| +// completed there, and perf regressions in https://crbug.com/690229 need to be
|
| +// investigated.
|
| +#if defined(OS_ANDROID)
|
| + return UseDedicatedProcessesForAllSites() ||
|
| + IsTopDocumentIsolationEnabled() ||
|
| + GetContentClient()->IsSupplementarySiteIsolationModeEnabled() ||
|
| + base::FeatureList::IsEnabled(::features::kGuestViewCrossProcessFrames);
|
| +#else
|
| return true;
|
| +#endif
|
| }
|
|
|
| // static
|
|
|