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

Unified Diff: remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java

Issue 1936093002: Reland 2 of Unify application context usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
Index: remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
diff --git a/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java b/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
index e5aff237551f509378283bcaae29384d8e7871e1..04c3857e91046925bc30487be6d98a744a92ca8f 100644
--- a/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
+++ b/remoting/android/host/src/org/chromium/chromoting/host/jni/Host.java
@@ -30,8 +30,9 @@ public class Host {
* @param context The Application context.
*/
public static void loadLibrary(Context context) {
+ ContextUtils.initApplicationContext(context.getApplicationContext());
System.loadLibrary("remoting_host_jni");
- ContextUtils.initApplicationContext(context);
+ ContextUtils.initApplicationContextForNative();
}
public Host() {

Powered by Google App Engine
This is Rietveld 408576698