| Index: ios/web_view/internal/app/application_context.cc
|
| diff --git a/ios/web_view/internal/app/application_context.cc b/ios/web_view/internal/app/application_context.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1ff6cf4ad5aa2c3bd0cb4ec7cb48aecc6b24ca45
|
| --- /dev/null
|
| +++ b/ios/web_view/internal/app/application_context.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2017 The Chromium 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 "ios/web_view/internal/app/application_context.h"
|
| +
|
| +namespace {
|
| +// Global ApplicationContext instance.
|
| +ApplicationContext* g_application_context = nullptr;
|
| +}
|
| +
|
| +ApplicationContext* GetApplicationContext() {
|
| + return g_application_context;
|
| +}
|
| +
|
| +ApplicationContext::ApplicationContext() {}
|
| +
|
| +ApplicationContext::~ApplicationContext() {}
|
| +
|
| +// static
|
| +void ApplicationContext::SetApplicationContext(ApplicationContext* context) {
|
| + g_application_context = context;
|
| +}
|
|
|