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 ios_web_view { |
| 8 // Global ApplicationContext instance. |
| 9 ApplicationContext* g_application_context = nullptr; |
| 10 |
| 11 ApplicationContext* GetApplicationContext() { |
| 12 return g_application_context; |
| 13 } |
| 14 |
| 15 ApplicationContext::ApplicationContext() {} |
| 16 |
| 17 ApplicationContext::~ApplicationContext() {} |
| 18 |
| 19 // static |
| 20 void ApplicationContext::SetApplicationContext(ApplicationContext* context) { |
| 21 g_application_context = context; |
| 22 } |
| 23 |
| 24 } // namespace ios_web_view |
OLD | NEW |