Enable-site-per-process-isolation-for-devices-with-enough-memory.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Sun, 17 Mar 2019 19:09:00 +0100
  3. Subject: Enable site per process isolation for devices with enough memory
  4. ---
  5. chrome/common/chrome_features.cc | 6 +-----
  6. 1 file changed, 1 insertion(+), 5 deletions(-)
  7. diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
  8. --- a/chrome/common/chrome_features.cc
  9. +++ b/chrome/common/chrome_features.cc
  10. @@ -518,11 +518,7 @@ const base::Feature kShowTrustedPublisherURL{"ShowTrustedPublisherURL",
  11. // (e.g. this approach lets ChromeCast avoid site-per-process mode).
  12. const base::Feature kSitePerProcess {
  13. "site-per-process",
  14. -#if defined(OS_ANDROID)
  15. - base::FEATURE_DISABLED_BY_DEFAULT
  16. -#else
  17. base::FEATURE_ENABLED_BY_DEFAULT
  18. -#endif
  19. };
  20. // kSitePerProcessOnlyForHighMemoryClients is checked before kSitePerProcess,
  21. @@ -535,7 +531,7 @@ const base::Feature kSitePerProcess {
  22. // base::SysInfo::AmountOfPhysicalMemoryMB().
  23. const base::Feature kSitePerProcessOnlyForHighMemoryClients{
  24. "site-per-process-only-for-high-memory-clients",
  25. - base::FEATURE_DISABLED_BY_DEFAULT};
  26. + base::FEATURE_ENABLED_BY_DEFAULT};
  27. const char kSitePerProcessOnlyForHighMemoryClientsParamName[] =
  28. "site-per-process-low-memory-cutoff-mb";
  29. --
  30. 2.11.0