commit | c339320be9ea823e5a7db5a747deb5a5fb593016 | [log] [tgz] |
---|---|---|
author | Torne (Richard Coles) <torne@google.com> | Wed Jun 27 19:26:41 2018 |
committer | Richard Coles <torne@chromium.org> | Wed Jun 27 19:26:41 2018 |
tree | a975e58fc64b8f9120e3e7a44eb14105eb24452e | |
parent | 65fa0e0aeeb52004a3ff156821ae69cb463bdc07 [diff] |
Mark ProxyChangeListener as @UsedByReflection. A number of WebView applications in the wild use reflection to call the proxy change broadcast receiver directly as a hack to allow them to set an application-local proxy setting. The reflection code used searches for ProxyChangeListener by name, so fails with proguard obfuscation enabled for the monochrome APK. Mark the relevant classes/methods as @UsedByReflection to ensure they don't get renamed, because while it's not good that applications do this, there is no supported API to achieve the same thing either, and it appears to be a commonly repeated piece of code. TBR=torne@google.com (cherry picked from commit 0f71a543910198ee5b4104ea0066494a3fcba309) Bug: 851995 Change-Id: I6174181491f57fd71fece91c98ae8b96f36b425f Reviewed-on: https://chromium-review.googlesource.com/1112564 Reviewed-by: Paul Jensen <pauljensen@chromium.org> Commit-Queue: Richard Coles <torne@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#570479} Reviewed-on: https://chromium-review.googlesource.com/1117331 Reviewed-by: Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/branch-heads/3440@{#554} Cr-Branched-From: 010ddcfda246975d194964ccf20038ebbdec6084-refs/heads/master@{#561733}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .