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

Unified Diff: components/cronet/android/proguard.cfg

Issue 2339223002: Cronet API Refactoring (Closed)
Patch Set: Rebase & Conflict Resolution Created 4 years, 2 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: components/cronet/android/proguard.cfg
diff --git a/components/cronet/android/proguard.cfg b/components/cronet/android/proguard.cfg
index ac913d2bcb8743538bca02848ec702239efb882e..1d6c8e1728b108ab14a808605c79343fb8976953 100644
--- a/components/cronet/android/proguard.cfg
+++ b/components/cronet/android/proguard.cfg
@@ -1,6 +1,13 @@
-keep class org.chromium.net.impl.CronetUrlRequest$HeadersList
-keep class org.chromium.net.impl.ChromiumUrlRequest$ResponseHeadersMap
+# This constructor is called by the reflection from Cronet API. It cannot be
+# annotated with @org.chromium.base.annotations.AccessedByNative in order to
+# avoid the dependency on Chromium-Base Java classes.
+-keep class org.chromium.net.impl.CronetEngineBuilderImpl {
+ public <init>(android.content.Context);
+}
+
# Suppress unnecessary warnings.
-dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
-dontnote org.chromium.net.AndroidKeyStore

Powered by Google App Engine
This is Rietveld 408576698