• Robbie McElrath's avatar
    Reland "[WebLayer] Change the return type of Fragment.getActivity() to Activity." · 360e54d9
    Robbie McElrath authored
    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: default avatarAndrew Grieve <agrieve@chromium.org>
    Reviewed-by: default avatarTheresa  <twellington@chromium.org>
    Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#826944}
    360e54d9
bytecode_rewriter.py 1.14 KB