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

Unified Diff: web_apks/minting_example/src/org/chromium/minting/DexLoader.java

Issue 1888773004: 🙅 Bind a WebAPK to its "host" browser. (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
Index: web_apks/minting_example/src/org/chromium/minting/DexLoader.java
diff --git a/web_apks/minting_example/src/org/chromium/minting/DexLoader.java b/web_apks/minting_example/src/org/chromium/minting/DexLoader.java
index 3628e2866bdf3f0ba307e31a872c1ea6bc305e0a..2a7ddb6f73f4713e2f048b931409917c268567b6 100644
--- a/web_apks/minting_example/src/org/chromium/minting/DexLoader.java
+++ b/web_apks/minting_example/src/org/chromium/minting/DexLoader.java
@@ -22,21 +22,6 @@ public class DexLoader {
private static final String TAG = "cr.DexLoader";
/**
- * Returns context for {@link remotePackageName} which is compatible with {@link #load()}
- * @param context A context.
- * @param remotePackageName The package name of the desired context.
- * @return The remote context. Returns null on an error.
- */
- public static Context getRemoteContext(Context context, String remotePackageName) {
- try {
- return context.getApplicationContext().createPackageContext(remotePackageName,
- Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);
- } catch (NameNotFoundException e) {
- return null;
- }
- }
-
- /**
* Creates ClassLoader for .dex file in {@link remoteContext}'s APK.
* @param remoteContext The context with the APK with the .dex file.
* @param dexName The name of the .dex file in the APK.

Powered by Google App Engine
This is Rietveld 408576698