Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: ios/web_view/internal/app/application_context.cc

Issue 2894483003: Initialize ios/web_view translate with a system-wide URLRequestContext. (Closed)
Patch Set: Respond to comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698