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

Unified Diff: content/browser/webui/web_ui_controller_factory_registry.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 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
Index: content/browser/webui/web_ui_controller_factory_registry.cc
diff --git a/content/browser/webui/web_ui_controller_factory_registry.cc b/content/browser/webui/web_ui_controller_factory_registry.cc
index 240c4dbbde7cc2fd57ca4827a887ba43a8ead4d9..b151e32a73a4aa1d9e39e6d1b757af602a70e7fd 100644
--- a/content/browser/webui/web_ui_controller_factory_registry.cc
+++ b/content/browser/webui/web_ui_controller_factory_registry.cc
@@ -13,8 +13,8 @@
namespace content {
-base::LazyInstance<std::vector<WebUIControllerFactory*> > g_factories =
- LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<std::vector<WebUIControllerFactory*>>::DestructorAtExit
+ g_factories = LAZY_INSTANCE_INITIALIZER;
void WebUIControllerFactory::RegisterFactory(WebUIControllerFactory* factory) {
g_factories.Pointer()->push_back(factory);

Powered by Google App Engine
This is Rietveld 408576698