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

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: 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 {
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698