Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
haraken
2016/06/27 11:16:00
2016
bashi
2016/06/27 22:40:23
Acknowledged.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/feature_list.h" | |
| 6 | |
| 7 namespace memory_coordinator { | |
| 8 | |
| 9 const base::Feature kMemoryCoordinator { | |
| 10 "MemoryCoordinator", base::FEATURE_DISABLED_BY_DEFAULT | |
| 11 }; | |
| 12 | |
| 13 bool IsEnabled() { | |
| 14 return base::FeatureList::IsEnabled(kMemoryCoordinator); | |
| 15 } | |
| 16 | |
| 17 void EnableForTesting() { | |
| 18 base::FeatureList::ClearInstanceForTesting(); | |
| 19 std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList); | |
| 20 feature_list->InitializeFromCommandLine(kMemoryCoordinator.name, ""); | |
| 21 base::FeatureList::SetInstance(std::move(feature_list)); | |
| 22 } | |
| 23 | |
| 24 } // namespace memory_coordinator | |
| OLD | NEW |