Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip not created actions from final array of actions passed to Java.
This change guarantees actions not created do not take a slot in the final array of actions that gets passed to Java. The change utilizes `std::vector` to track the count of actions that do get passed, and suppresses passing control over to Java when - no actions are applicable to Android, or - actions are not ready to be passed (e.g. the control comes from an intent handler). The change replaces the former mechanism used to cache reference to jclass with an updated mechanism that better aligns with Clank JNI solutions. (cherry picked from commit aefab5d) Bug: 1450106 Change-Id: I958ccbc57dd727edc3f7fd5acb8578edafb38fde Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4575458 Reviewed-by: Fred Mello <fredmello@chromium.org> Auto-Submit: Tomasz Wiszkowski <ender@google.com> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Tomasz Wiszkowski <ender@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1151320} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4585081 Commit-Queue: Krishna Govind <govind@chromium.org> Reviewed-by: Krishna Govind <govind@chromium.org> Owners-Override: Krishna Govind <govind@chromium.org> Reviewed-by: Tomasz Wiszkowski <ender@google.com> Cr-Commit-Position: refs/branch-heads/5790@{#284} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information