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

Unified Diff: components/cronet/android/api/src/org/chromium/net/CronetEngine.java

Issue 1981793002: [Cronet] Use Context's ClassLoader to load Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/api/src/org/chromium/net/CronetEngine.java
diff --git a/components/cronet/android/api/src/org/chromium/net/CronetEngine.java b/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
index f024732d3c13f5c2fa25ef09a7aa2c125a5b7b77..23c5312d68cdfd9ad044c0548bb111c92ce3368d 100644
--- a/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
+++ b/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
@@ -1010,7 +1010,8 @@ public abstract class CronetEngine {
CronetEngine cronetEngine = null;
try {
Class<? extends CronetEngine> engineClass =
- CronetEngine.class.getClassLoader()
+ builder.getContext()
kapishnikov 2016/06/02 16:17:47 Is it the same context that is supplied in the con
pauljensen 2016/06/03 13:24:30 Yes
+ .getClassLoader()
.loadClass(CRONET_URL_REQUEST_CONTEXT)
.asSubclass(CronetEngine.class);
Constructor<? extends CronetEngine> constructor =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698