Index: base/android/context_utils.h |
diff --git a/base/android/context_utils.h b/base/android/context_utils.h |
index f172d932e969e82e71a8f99886267efd80afc325..52895a9a5306382d747942543e4492428f524a93 100644 |
--- a/base/android/context_utils.h |
+++ b/base/android/context_utils.h |
@@ -18,6 +18,14 @@ |
// must NOT release it. |
BASE_EXPORT jobject GetApplicationContext(); |
+// Initialize the global application context object. |
+// Either this or the Java equivalent ContextUtils.initApplicationContext must |
+// be called once during startup. JNI bindings must have been initialized, as |
+// the context is stored on both sides. |
+BASE_EXPORT void InitApplicationContext( |
+ JNIEnv* env, |
+ const base::android::JavaRef<jobject>& context); |
+ |
bool RegisterContextUtils(JNIEnv* env); |
} // namespace android |