Index: chrome/android/java/proguard.flags |
diff --git a/chrome/android/java/proguard.flags b/chrome/android/java/proguard.flags |
index cf546d1ba7ebc350d2eac18eebae58716d6d46b8..fb5a4d8d9a789c04aa6d7a3aef04ac99a6781c9c 100644 |
--- a/chrome/android/java/proguard.flags |
+++ b/chrome/android/java/proguard.flags |
@@ -1,8 +1,3 @@ |
-# Disable obfuscation for the following two packages. |
--keepnames,allowoptimization class com.google.android.apps.chrome.**,org.chromium.** { |
- *; |
-} |
- |
# Fragments are loaded using reflection via Fragment.instantiate(Context,String) |
# This can be improved upon - see crbug.com/622023. |
-keep public class com.google.android.apps.chrome** extends android.app.Fragment |
@@ -24,6 +19,13 @@ |
*; |
} |
+# These classes aren't themselves referenced, but __ProcessService[0,1,2...] are |
+# referenced, and we look up these services by appending a number onto the name |
+# of the base class. Thus, we need to keep the base class name around so that |
+# the child classes can be looked up. |
+-keep class org.chromium.content.app.SandboxedProcessService |
+-keep class org.chromium.content.app.PrivilegedProcessService |
+ |
# Keep all Parcelables as they might be marshalled outside Chrome. |
-keepnames class * implements android.os.Parcelable { |
public static final ** CREATOR; |