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

Unified Diff: extensions/common/extension_api.cc

Issue 2338273005: [Extensions] Make feature-related singletons leaky (Closed)
Patch Set: Created 4 years, 3 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 | extensions/common/features/feature_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_api.cc
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc
index 93130c2bcdfb6a1185ebe3dcbc7cd132773fb5b4..9a0801e018f757713ba9603f58d8f35b09fcace1 100644
--- a/extensions/common/extension_api.cc
+++ b/extensions/common/extension_api.cc
@@ -99,7 +99,7 @@ struct Static {
std::unique_ptr<ExtensionAPI> api;
};
-base::LazyInstance<Static> g_lazy_instance = LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<Static>::Leaky g_lazy_instance = LAZY_INSTANCE_INITIALIZER;
// May override |g_lazy_instance| for a test.
ExtensionAPI* g_shared_instance_for_test = NULL;
« no previous file with comments | « no previous file | extensions/common/features/feature_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698