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

Side by Side Diff: components/memory_coordinator/common/memory_coordinator_features.cc

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use feature_list Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698