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

Unified Diff: base/feature_list.h

Issue 1812883003: Enable features API for content shell and webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated comment in BrowserMainLoop Created 4 years, 9 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
« no previous file with comments | « no previous file | base/feature_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/feature_list.h
diff --git a/base/feature_list.h b/base/feature_list.h
index cf865a1355abb231d03320cb0fabe5e05149b453..c4d6e83f0f925ff7e46cb72e7d37259e20602189 100644
--- a/base/feature_list.h
+++ b/base/feature_list.h
@@ -145,9 +145,13 @@ class BASE_EXPORT FeatureList {
static std::vector<std::string> SplitFeatureListString(
const std::string& input);
- // Initializes and sets a default instance of FeatureList if one has not yet
- // already been set. No-op otherwise.
- static void InitializeInstance();
+ // Initializes and sets an instance of FeatureList with feature overrides via
+ // command-line flags |enable_features| and |disable_features| if one has not
+ // already been set from command-line flags. No-op otherwise. See
+ // InitializeFromCommandLine for more details about |enable_features| and
+ // |disable_features| parameters.
+ static void InitializeInstance(const std::string& enable_features,
+ const std::string& disable_features);
// Returns the singleton instance of FeatureList. Will return null until an
// instance is registered via SetInstance().
@@ -235,6 +239,9 @@ class BASE_EXPORT FeatureList {
// result of FinalizeInitialization().
bool initialized_;
+ // Whether this object has been initialized from command line.
+ bool initialized_from_command_line_;
+
DISALLOW_COPY_AND_ASSIGN(FeatureList);
};
« no previous file with comments | « no previous file | base/feature_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698