1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/application_context.h"
7 #include "base/logging.h"
10 // Global ApplicationContext instance.
11 ApplicationContext
* g_application_context
= nullptr;
14 ApplicationContext
* GetApplicationContext() {
15 return g_application_context
;
18 ApplicationContext::ApplicationContext() {
21 ApplicationContext::~ApplicationContext() {
25 void ApplicationContext::SetApplicationContext(ApplicationContext
* context
) {
26 g_application_context
= context
;