Index: components/memory_coordinator/common/memory_coordinator_features.cc |
diff --git a/components/memory_coordinator/common/memory_coordinator_features.cc b/components/memory_coordinator/common/memory_coordinator_features.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5e892fe2472d9ca91f7df5ca5ebf350f8069864 |
--- /dev/null |
+++ b/components/memory_coordinator/common/memory_coordinator_features.cc |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "base/feature_list.h" |
+ |
+namespace memory_coordinator { |
+ |
+const base::Feature kMemoryCoordinator { |
+ "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT |
+}; |
+ |
+bool IsEnabled() { |
+ return base::FeatureList::IsEnabled(kMemoryCoordinator); |
+} |
+ |
+void EnableForTesting() { |
+ base::FeatureList::ClearInstanceForTesting(); |
+ std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList); |
+ feature_list->InitializeFromCommandLine(kMemoryCoordinator.name, ""); |
+ base::FeatureList::SetInstance(std::move(feature_list)); |
+} |
+ |
+} // namespace memory_coordinator |