Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: content/browser/memory/memory_coordinator_browsertest.cc

Issue 2434353003: Introduce MemoryCoordinatorProxy in base (Closed)
Patch Set: Address on reviews Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/memory/memory_coordinator_browsertest.cc
diff --git a/content/browser/memory/memory_coordinator_browsertest.cc b/content/browser/memory/memory_coordinator_browsertest.cc
index 4a6b4cc0b3bf310146a2a6edd0552917a5ea3199..096163fa3aecdc676632489b571c28cc7d495874 100644
--- a/content/browser/memory/memory_coordinator_browsertest.cc
+++ b/content/browser/memory/memory_coordinator_browsertest.cc
@@ -10,24 +10,12 @@
namespace content {
-namespace {
-
-void EnableForTesting() {
- base::FeatureList::ClearInstanceForTesting();
- std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList);
- feature_list->InitializeFromCommandLine(features::kMemoryCoordinator.name,
- "");
- base::FeatureList::SetInstance(std::move(feature_list));
-}
-
-} // namespace
-
class MemoryCoordinatorTest : public ContentBrowserTest {
public:
MemoryCoordinatorTest() {}
void SetUp() override {
- EnableForTesting();
+ MemoryCoordinator::EnableFeaturesForTesting();
ContentBrowserTest::SetUp();
}

Powered by Google App Engine
This is Rietveld 408576698