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

Unified Diff: base/feature_list.cc

Issue 1409933007: Register a default instance of FeatureList for content browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move logic to FeatureList. Created 5 years, 1 month 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 | « base/feature_list.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/feature_list.cc
diff --git a/base/feature_list.cc b/base/feature_list.cc
index 38cdf57c139ff5812ae3063e6e5e74f140750322..050c5aa2d161c302f74b9a3b839df3cece050673 100644
--- a/base/feature_list.cc
+++ b/base/feature_list.cc
@@ -95,6 +95,13 @@ std::vector<std::string> FeatureList::SplitFeatureListString(
}
// static
+void FeatureList::InitializeInstance() {
+ if (g_instance)
+ return;
+ SetInstance(make_scoped_ptr(new FeatureList));
+}
+
+// static
FeatureList* FeatureList::GetInstance() {
return g_instance;
}
« no previous file with comments | « base/feature_list.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698