Require explicit selection of traits for LazyInstance

https://codereview.chromium.org/2733283002
This commit is contained in:
Aleksei Kuzmin
2017-06-20 22:14:39 +03:00
parent e16e1e2854
commit e2fe95894f
4 changed files with 7 additions and 7 deletions

View File

@@ -16,8 +16,8 @@ namespace atom {
namespace {
using GuestViewContainerMap = std::map<int, GuestViewContainer*>;
static base::LazyInstance<GuestViewContainerMap> g_guest_view_container_map =
LAZY_INSTANCE_INITIALIZER;
static base::LazyInstance<GuestViewContainerMap>::DestructorAtExit
g_guest_view_container_map = LAZY_INSTANCE_INITIALIZER;
} // namespace

View File

@@ -17,8 +17,8 @@ namespace atom {
namespace {
static base::LazyInstance<base::ThreadLocalPointer<WebWorkerObserver>>
lazy_tls = LAZY_INSTANCE_INITIALIZER;
static base::LazyInstance<base::ThreadLocalPointer<WebWorkerObserver>>::
DestructorAtExit lazy_tls = LAZY_INSTANCE_INITIALIZER;
} // namespace