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

Unified Diff: content/browser/media/cdm_registry_impl.cc

Issue 2668813002: Remove LazyInstance usage from media/ (Closed)
Patch Set: Fix presubmit comments. Created 3 years, 10 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 | « content/browser/media/cdm_registry_impl.h ('k') | content/browser/media/media_internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/cdm_registry_impl.cc
diff --git a/content/browser/media/cdm_registry_impl.cc b/content/browser/media/cdm_registry_impl.cc
index 1f38fe0d41926213dbf5275ae45a9a15f407cc54..fcc54536af9ea6f6f4f8a51c383473886a584e63 100644
--- a/content/browser/media/cdm_registry_impl.cc
+++ b/content/browser/media/cdm_registry_impl.cc
@@ -11,9 +11,6 @@
namespace content {
-static base::LazyInstance<CdmRegistryImpl>::Leaky g_cdm_registry =
- LAZY_INSTANCE_INITIALIZER;
-
// static
CdmRegistry* CdmRegistry::GetInstance() {
return CdmRegistryImpl::GetInstance();
@@ -21,7 +18,8 @@ CdmRegistry* CdmRegistry::GetInstance() {
// static
CdmRegistryImpl* CdmRegistryImpl::GetInstance() {
- return g_cdm_registry.Pointer();
+ static CdmRegistryImpl* registry = new CdmRegistryImpl();
+ return registry;
}
CdmRegistryImpl::CdmRegistryImpl() {}
« no previous file with comments | « content/browser/media/cdm_registry_impl.h ('k') | content/browser/media/media_internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698