Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116 merge 5845] Revert "[Share] Remove TargetChosenReceiver when Wi…
…ndowAndroid destroyed" This reverts commit 0d8a9c0. Reason for revert: Causing breakage for CCT: crbug/1470978 Original change's description: > [Share] Remove TargetChosenReceiver when WindowAndroid destroyed > > Android share sheet is showing with as ChooserActivity on top of Chrome. When theme switches, Chrome activity is recreated, so the previous stored custom actions should go away since they are referencing the old activity. As a result, the custom actions on the share sheet becomes no-op once selected. > > This CL include the fix that: > * Remove the weak reference to Activity and WindowAndroid once it is removed from the UserDataHost (in WindowAndroid) > * Close the share sheet. This is done by sending an intent with Intent.FLAG_ACTIVITY_CLEAR_TOP targeting to the dispatching activity. > > Bug: 1470036 > Change-Id: Ibb56fd3d57cf48645c23a9f8a17eb95554b7e5a4 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4750566 > Reviewed-by: Theresa Sullivan <twellington@chromium.org> > Commit-Queue: Wenyu Fu <wenyufu@chromium.org> > Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> > Cr-Commit-Position: refs/heads/main@{#1179706} (cherry picked from commit b41d253) Bug: 1470036 Change-Id: I9552ceb84479a81cf3601b9dacddc16ac751693f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4765216 Reviewed-by: Theresa Sullivan <twellington@chromium.org> Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Original-Commit-Position: refs/heads/main@{#1181598} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4771256 Reviewed-by: Wenyu Fu <wenyufu@chromium.org> Reviewed-by: Krishna Govind <govind@chromium.org> Commit-Queue: Krishna Govind <govind@chromium.org> Owners-Override: Krishna Govind <govind@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#1350} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information