Reland "[WebLayer] Change the return type of Fragment.getActivity() to Activity."
This is a reland of ae52b2a4 with fixes for robolectric tests, which run on the JVM which appears to have stricter verification checks. Original change's description: > [WebLayer] Change the return type of Fragment.getActivity() to Activity. > > This CL adds the ability to specify a script in an android_aar_prebuilt > rule that can modify prebuilt jar files, and adds a script to change > Fragment.getActivity() and Fragment.requireActivity() to return an > Activity instead of a FragmentActivity. > > This is the first CL in a chain that will allow us to remove the fake > activity we create when embedding Fragments that cross classloader > boundaries. > > Bug: 1123216 > Change-Id: I4b9d3ca5f9c3a4d86e08d64f49d601c08fca9a70 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2432413 > Reviewed-by: Theresa <twellington@chromium.org> > Reviewed-by: Andrew Grieve <agrieve@chromium.org> > Commit-Queue: Robbie McElrath <rmcelrath@chromium.org> > Cr-Commit-Position: refs/heads/master@{#823582} Bug: 1123216 Change-Id: I83ed0c47cda12e4a71ed90cc0bce4cde2a07782d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521343Reviewed-by:Andrew Grieve <agrieve@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Commit-Queue: Robbie McElrath <rmcelrath@chromium.org> Cr-Commit-Position: refs/heads/master@{#826944}
Showing
No preview for this file type
Please register or sign in to comment