mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Require explicit selection of traits for LazyInstance
https://codereview.chromium.org/2733283002
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user