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..b5e7a439dd25d6ac2c59938178c6e3ce9ee571d1 100644 |
--- a/net/proxy/dhcpcsvc_init_win.cc |
+++ b/net/proxy/dhcpcsvc_init_win.cc |
@@ -19,15 +19,12 @@ class DhcpcsvcInitSingleton { |
DWORD err = DhcpCApiInitialize(&version); |
DCHECK(err == ERROR_SUCCESS); // DCHECK_EQ complains of unsigned mismatch. |
} |
- |
- ~DhcpcsvcInitSingleton() { |
gab
2016/04/26 11:53:18
Make the destructor private w/ a comment of why it
Patrick Monette
2016/04/26 19:05:28
The comment that explain that is Worker pool threa
Patrick Monette
2016/04/26 19:18:38
clear*
|
- // Worker pool threads that use the DHCP API may still be running, so skip |
- // cleanup. |
- } |
}; |
-static base::LazyInstance<DhcpcsvcInitSingleton> g_dhcpcsvc_init_singleton = |
- LAZY_INSTANCE_INITIALIZER; |
+// Worker pool threads that use the DHCP API may still be running. Leak instance |
robliao
2016/04/25 23:05:25
s/running/running at shutdown/
Patrick Monette
2016/04/26 19:05:27
Done.
|
+// and skip cleanup. |
+static base::LazyInstance<DhcpcsvcInitSingleton>::Leaky |
+ g_dhcpcsvc_init_singleton = LAZY_INSTANCE_INITIALIZER; |
gab
2016/04/26 11:53:18
Is the change in this file required to land the ot
Patrick Monette
2016/04/26 19:05:27
Threads with CONTINUE_ON_SHUTDOWN behavior were ac
gab
2016/04/26 20:11:47
Ah I see, it wasn't obvious to me how the two were
|
} // namespace |