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

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

Issue 500193002: Fix Cronet compilation and test errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 4 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 | components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/CronetSamplePreconditionsTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/proguard.cfg
diff --git a/components/cronet/android/proguard.cfg b/components/cronet/android/proguard.cfg
index 938960ae9922af82f8e611362b9289935f46d7fe..a4a47a711fb79fe4d1e51eb206b55167b9009491 100644
--- a/components/cronet/android/proguard.cfg
+++ b/components/cronet/android/proguard.cfg
@@ -10,12 +10,10 @@
# TODO(mef) remove unnecessary classes from base, so we don't have to preserve
# their methods
--keepclasseswithmembers class org.chromium.** {
+-keep class org.chromium.** {
native <methods>;
}
--dontnote org.chromium.net.AndroidKeyStore
-
# Needed so that multiple optimization passes will detect annotations
-keepattributes *Annotation*
@@ -24,4 +22,12 @@
-keep @org.chromium.net.UsedBy* class *
-keepclassmembers class * {
@org.chromium.net.UsedBy* *;
-}
+}
+
+# Suppress unnecessary warnings.
+-dontnote org.chromium.net.AndroidKeyStore
+# Objects of this type are passed around by native code, but the class
+# is never used directly by native code. Since the class is not loaded, it does
+# not need to be preserved as an entry point.
+-dontnote org.chromium.net.UrlRequest$ResponseHeadersMap
+
« no previous file with comments | « no previous file | components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/CronetSamplePreconditionsTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698