OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #include "ios/web_view/internal/app/application_context.h" |
| 6 |
| 7 namespace { |
| 8 // Global ApplicationContext instance. |
| 9 ApplicationContext* g_application_context = nullptr; |
| 10 } |
| 11 |
| 12 ApplicationContext* GetApplicationContext() { |
| 13 return g_application_context; |
| 14 } |
| 15 |
| 16 ApplicationContext::ApplicationContext() {} |
| 17 |
| 18 ApplicationContext::~ApplicationContext() {} |
| 19 |
| 20 // static |
| 21 void ApplicationContext::SetApplicationContext(ApplicationContext* context) { |
| 22 g_application_context = context; |
| 23 } |
OLD | NEW |