cef/tests/cefclient/main_context.cc
Marshall Greenblatt 3f4c5acbe7 Add missing include statement (issue #1502).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1997 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
2015-01-26 00:59:40 +00:00

34 lines
616 B
C++

// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "cefclient/main_context.h"
#include "include/base/cef_logging.h"
namespace client {
namespace {
MainContext* g_main_context = NULL;
} // namespace
// static
MainContext* MainContext::Get() {
DCHECK(g_main_context);
return g_main_context;
}
MainContext::MainContext() {
DCHECK(!g_main_context);
g_main_context = this;
}
MainContext::~MainContext() {
g_main_context = NULL;
}
} // namespace client