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

Unified Diff: base/android/context_utils.cc

Issue 1917193003: Revert of 🍈 Unify application context usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/context_utils.h ('k') | base/android/java/src/org/chromium/base/ContextUtils.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/context_utils.cc
diff --git a/base/android/context_utils.cc b/base/android/context_utils.cc
index e9ab723fdf93ab999cf4c2e73881e2fc219f7b15..fd62c45f606b28d4596283738e7d5eb6eed3d490 100644
--- a/base/android/context_utils.cc
+++ b/base/android/context_utils.cc
@@ -38,6 +38,11 @@
return g_application_context.Get().obj();
}
+void InitApplicationContext(JNIEnv* env, const JavaRef<jobject>& context) {
+ SetNativeApplicationContext(env, context);
+ Java_ContextUtils_initJavaSideApplicationContext(env, context.obj());
+}
+
static void InitNativeSideApplicationContext(
JNIEnv* env,
const JavaParamRef<jclass>& clazz,
« no previous file with comments | « base/android/context_utils.h ('k') | base/android/java/src/org/chromium/base/ContextUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698