Enable-SPPI-for-devices-with-enough-memory.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Sun, 17 Mar 2019 19:09:00 +0100
  3. Subject: Enable SPPI for devices with enough memory
  4. ---
  5. chrome/common/chrome_features.cc | 4 ----
  6. components/site_isolation/features.cc | 2 +-
  7. 2 files changed, 1 insertion(+), 5 deletions(-)
  8. diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
  9. --- a/chrome/common/chrome_features.cc
  10. +++ b/chrome/common/chrome_features.cc
  11. @@ -690,11 +690,7 @@ const base::Feature kShowTrustedPublisherURL{"ShowTrustedPublisherURL",
  12. // browser_features, as they are only used on the browser side.
  13. const base::Feature kSitePerProcess {
  14. "site-per-process",
  15. -#if defined(OS_ANDROID)
  16. - base::FEATURE_DISABLED_BY_DEFAULT
  17. -#else
  18. base::FEATURE_ENABLED_BY_DEFAULT
  19. -#endif
  20. };
  21. #if defined(OS_CHROMEOS)
  22. diff --git a/components/site_isolation/features.cc b/components/site_isolation/features.cc
  23. --- a/components/site_isolation/features.cc
  24. +++ b/components/site_isolation/features.cc
  25. @@ -36,7 +36,7 @@ const base::Feature kSiteIsolationForPasswordSites {
  26. // base::SysInfo::AmountOfPhysicalMemoryMB().
  27. const base::Feature kSitePerProcessOnlyForHighMemoryClients{
  28. "site-per-process-only-for-high-memory-clients",
  29. - base::FEATURE_DISABLED_BY_DEFAULT};
  30. + base::FEATURE_ENABLED_BY_DEFAULT};
  31. const char kSitePerProcessOnlyForHighMemoryClientsParamName[] =
  32. "site-per-process-low-memory-cutoff-mb";
  33. --
  34. 2.17.1