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

Unified Diff: web_apks/minting_example/javatests/src/org/chromium/minting/DexLoaderTest.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/javatests/src/org/chromium/minting/DexLoaderTest.java
diff --git a/web_apks/minting_example/javatests/src/org/chromium/minting/DexLoaderTest.java b/web_apks/minting_example/javatests/src/org/chromium/minting/DexLoaderTest.java
index bf6009d48b6b8ef265b0f1e0ed7c4c99ef490a01..cc84793052a1485963c620c826c40ada54bda4a6 100644
--- a/web_apks/minting_example/javatests/src/org/chromium/minting/DexLoaderTest.java
+++ b/web_apks/minting_example/javatests/src/org/chromium/minting/DexLoaderTest.java
@@ -18,6 +18,7 @@ import dalvik.system.DexFile;
import org.chromium.base.FileUtils;
import org.chromium.content.browser.test.util.CallbackHelper;
+import org.chromium.minting.lib.common.WebAPKUtils;
import org.chromium.minting.test.dex_optimizer.IDexOptimizerService;
import java.io.File;
@@ -87,7 +88,7 @@ public class DexLoaderTest extends InstrumentationTestCase {
protected void setUp() {
mContext = getInstrumentation().getTargetContext();
- mRemoteContext = DexLoader.getRemoteContext(mContext, DEX_OPTIMIZER_SERVICE_PACKAGE);
+ mRemoteContext = WebAPKUtils.getHostBrowserContext(mContext);
if (mRemoteContext == null) {
fail("Failed to get remote context.");
}

Powered by Google App Engine
This is Rietveld 408576698