Commit 51e8c53f authored by Marshall Greenblatt's avatar Marshall Greenblatt

Remove CefForceShutdown and make failure to call CefShutdown a DCHECK instead (issue #1932)

parent 77097ffa
......@@ -47,18 +47,15 @@ namespace {
CefContext* g_context = NULL;
// Force shutdown when the process terminates if a context currently exists and
// CefShutdown() has not been explicitly called.
class CefForceShutdown {
// When the process terminates check if CefShutdown() has been called.
class CefShutdownChecker {
~CefForceShutdown() {
if (g_context) {
delete g_context;
g_context = NULL;
~CefShutdownChecker() {
DCHECK(!g_context) << "CefShutdown was not called";
} g_force_shutdown;
} g_shutdown_checker;
#endif // DCHECK_IS_ON()
#if defined(OS_WIN)
#if defined(ARCH_CPU_X86_64)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment