| Index: content/child/memory/child_memory_coordinator_impl.cc
|
| diff --git a/content/child/memory/child_memory_coordinator_impl.cc b/content/child/memory/child_memory_coordinator_impl.cc
|
| index 5412c6458efa83a116c6b8204f4d98fb74deab56..a872b66a5587976d2e5a7771415280569a6bfa84 100644
|
| --- a/content/child/memory/child_memory_coordinator_impl.cc
|
| +++ b/content/child/memory/child_memory_coordinator_impl.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/lazy_instance.h"
|
| #include "base/memory/memory_coordinator_client_registry.h"
|
| #include "base/synchronization/lock.h"
|
| +#include "content/public/common/content_features.h"
|
|
|
| namespace content {
|
|
|
| @@ -34,6 +35,13 @@ base::MemoryState ToBaseMemoryState(mojom::MemoryState state) {
|
| } // namespace
|
|
|
| // static
|
| +bool ChildMemoryCoordinatorImpl::IsEnabled() {
|
| + // TODO(tasak): Remove |kPurgeAndSuspend| when the experiment is done.
|
| + return base::FeatureList::IsEnabled(features::kMemoryCoordinator) ||
|
| + base::FeatureList::IsEnabled(features::kPurgeAndSuspend);
|
| +}
|
| +
|
| +// static
|
| ChildMemoryCoordinatorImpl* ChildMemoryCoordinatorImpl::GetInstance() {
|
| base::AutoLock lock(*g_lock.Pointer());
|
| return g_child_memory_coordinator;
|
|
|