Chromium Code Reviews| Index: base/win/win_util.cc |
| diff --git a/base/win/win_util.cc b/base/win/win_util.cc |
| index 3b7d3195ac6c0b2622ef39c263cf2479d6c4606f..7d95bc3c0b4bd6f201a6b1f69d8a325f0e08f62f 100644 |
| --- a/base/win/win_util.cc |
| +++ b/base/win/win_util.cc |
| @@ -32,7 +32,6 @@ |
| #include "base/base_switches.h" |
| #include "base/command_line.h" |
| -#include "base/lazy_instance.h" |
| #include "base/logging.h" |
| #include "base/macros.h" |
| #include "base/strings/string_util.h" |
| @@ -540,9 +539,9 @@ void SetDomainStateForTesting(bool state) { |
| } |
| bool IsUser32AndGdi32Available() { |
| - static base::LazyInstance<LazyIsUser32AndGdi32Available>::Leaky available = |
| - LAZY_INSTANCE_INITIALIZER; |
| - return available.Get().value(); |
| + static auto lazy_is_user32_and_gdi32_available = |
|
Mark Mentovai
2017/01/31 14:37:01
This is an excellent candidate for the same kind o
scottmg
2017/01/31 18:19:16
Done.
|
| + new LazyIsUser32AndGdi32Available(); |
| + return lazy_is_user32_and_gdi32_available->value(); |
| } |
| bool GetLoadedModulesSnapshot(HANDLE process, std::vector<HMODULE>* snapshot) { |