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

Side by Side Diff: android_webview/apk/java/proguard.flags

Issue 2489333003: WebView Proguard: Keep AwBrowserProcess.sExclusiveFileLock. (Closed)
Patch Set: Use -keep instead of -keepclassmembers. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Don't rename anything, it makes stack traces unintelligible. We only allow the 1 # Don't rename anything, it makes stack traces unintelligible. We only allow the
2 # obfuscation pass to run so that we can discard attributes like local variable 2 # obfuscation pass to run so that we can discard attributes like local variable
3 # tables. However, we don't want to lose out on optimizations, so although they 3 # tables. However, we don't want to lose out on optimizations, so although they
4 # can occasionally make the stack trace a bit stranger with inlining, it won't 4 # can occasionally make the stack trace a bit stranger with inlining, it won't
5 # make a big difference for the users seeing the stacktraces. We can always use 5 # make a big difference for the users seeing the stacktraces. We can always use
6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us. 6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us.
7 -keepnames,allowoptimization class *** { *; } 7 -keepnames,allowoptimization class *** { *; }
8 8
9 # Keep the factory and its public members; it's the main entry point used by the 9 # Keep the factory and its public members; it's the main entry point used by the
10 # framework. 10 # framework.
(...skipping 25 matching lines...) Expand all
36 # android.net.ProxyProperties. 36 # android.net.ProxyProperties.
37 -dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver 37 -dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
38 38
39 # Silence warnings about reflection used to check for onShow/HideCustomView. 39 # Silence warnings about reflection used to check for onShow/HideCustomView.
40 # This class is not really kept since it's in a library jar. 40 # This class is not really kept since it's in a library jar.
41 -keep class android.webkit.WebChromeClient { 41 -keep class android.webkit.WebChromeClient {
42 void onShowCustomView(...); 42 void onShowCustomView(...);
43 void onHideCustomView(); 43 void onHideCustomView();
44 } 44 }
45 45
46 -keep class org.chromium.android_webview.AwBrowserProcess {
47 java.nio.channels.FileLock sExclusiveFileLock;
48 }
49
46 # Accessed via reflection but not present in all builds 50 # Accessed via reflection but not present in all builds
47 -keep class com.android.webview.chromium.PlatformServiceBridgeGoogle { 51 -keep class com.android.webview.chromium.PlatformServiceBridgeGoogle {
48 void setMetricsSettingListener(...); 52 void setMetricsSettingListener(...);
49 PlatformServiceBridgeGoogle(...); 53 PlatformServiceBridgeGoogle(...);
50 } 54 }
51 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle 55 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle
52 56
53 #TODO(hush): remove after N release. crbug.com/546762 57 #TODO(hush): remove after N release. crbug.com/546762
54 -keep class com.android.webview.chromium.ContentSettingsAdapter { 58 -keep class com.android.webview.chromium.ContentSettingsAdapter {
55 public void setDisabledActionModeMenuItems(int); 59 public void setDisabledActionModeMenuItems(int);
56 public int getDisabledActionModeMenuItems(); 60 public int getDisabledActionModeMenuItems();
57 } 61 }
OLDNEW
« 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