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

Unified Diff: base/android/java/src/org/chromium/base/ContextUtils.java

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build 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 side-by-side diff with in-line comments
Download patch
Index: base/android/java/src/org/chromium/base/ContextUtils.java
diff --git a/base/android/java/src/org/chromium/base/ContextUtils.java b/base/android/java/src/org/chromium/base/ContextUtils.java
index 448eff9b6a9f33ebf3ef4c3eecaa91711bd7d0a1..390d5dc6895f5dfdf09b111adfb89d32101bf658 100644
--- a/base/android/java/src/org/chromium/base/ContextUtils.java
+++ b/base/android/java/src/org/chromium/base/ContextUtils.java
@@ -61,16 +61,6 @@ public class ContextUtils {
initJavaSideApplicationContext(appContext);
}
- /**
- * Initialize the native Android application context to be the same as the java counter-part.
- */
- public static void initApplicationContextForNative() {
- if (sApplicationContext == null) {
- throw new RuntimeException("Cannot have native global application context be null.");
- }
- nativeInitNativeSideApplicationContext(sApplicationContext);
- }
-
/**
* Only called by the static holder class and tests.
*
@@ -110,6 +100,4 @@ public class ContextUtils {
}
sApplicationContext = appContext;
}
-
- private static native void nativeInitNativeSideApplicationContext(Context appContext);
}
« no previous file with comments | « base/android/context_utils.cc ('k') | base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698