Chromium Code Reviews| Index: net/proxy/dhcpcsvc_init_win.cc |
| diff --git a/net/proxy/dhcpcsvc_init_win.cc b/net/proxy/dhcpcsvc_init_win.cc |
| index 7e32aeae9cd5593b3d788341cdd5bc9f8d845ece..4e5a89156c33c2732014d3f4fcf036881dc0c785 100644 |
| --- a/net/proxy/dhcpcsvc_init_win.cc |
| +++ b/net/proxy/dhcpcsvc_init_win.cc |
| @@ -20,14 +20,14 @@ class DhcpcsvcInitSingleton { |
| DCHECK(err == ERROR_SUCCESS); // DCHECK_EQ complains of unsigned mismatch. |
| } |
| - ~DhcpcsvcInitSingleton() { |
| - // Worker pool threads that use the DHCP API may still be running, so skip |
| - // cleanup. |
| - } |
| + private: |
| + ~DhcpcsvcInitSingleton() {} |
|
gab
2016/04/26 20:11:47
Actually never mind the private destructor, I'd mi
|
| }; |
| -static base::LazyInstance<DhcpcsvcInitSingleton> g_dhcpcsvc_init_singleton = |
| - LAZY_INSTANCE_INITIALIZER; |
| +// Worker pool threads that use the DHCP API may still be running at shutdown. |
| +// Leak instance and skip cleanup. |
| +static base::LazyInstance<DhcpcsvcInitSingleton>::Leaky |
| + g_dhcpcsvc_init_singleton = LAZY_INSTANCE_INITIALIZER; |
| } // namespace |