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

Unified Diff: mojo/gles2/control_thunks_impl.cc

Issue 1686953003: Remove uses of base/lazy_instance (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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
Index: mojo/gles2/control_thunks_impl.cc
diff --git a/mojo/gles2/control_thunks_impl.cc b/mojo/gles2/control_thunks_impl.cc
index 67e4bbb5cf39493285a75278f0ffad93b91d2b8c..ab0d48c52a6963cc3d4b6ba2c22f9d86cba876fa 100644
--- a/mojo/gles2/control_thunks_impl.cc
+++ b/mojo/gles2/control_thunks_impl.cc
@@ -20,8 +20,8 @@ namespace gles2 {
// static
ControlThunksImpl* ControlThunksImpl::Get() {
- static base::LazyInstance<ControlThunksImpl>::Leaky thunks;
- return thunks.Pointer();
+ static auto* thunks = new ControlThunksImpl;
+ return thunks;
}
MGLContext ControlThunksImpl::CreateContext(

Powered by Google App Engine
This is Rietveld 408576698