1 // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
5 #include "tests/cefclient/browser/main_context.h"
7 #include "include/base/cef_logging.h"
13 MainContext* g_main_context = NULL;
18 MainContext* MainContext::Get() {
19 DCHECK(g_main_context);
20 return g_main_context;
23 MainContext::MainContext() {
24 DCHECK(!g_main_context);
25 g_main_context = this;
29 MainContext::~MainContext() {
30 g_main_context = NULL;