commit | 0ae59fae8d489f404d39af18a6206f3d3ff2e203 | [log] [tgz] |
---|---|---|
author | Shuhei Takahashi <nya@chromium.org> | Tue Sep 24 02:03:00 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 24 02:03:00 2024 |
tree | a292c9569f2c99905ce7a420e14bea482f14a93e | |
parent | 76dad3c412adaa55d359a9dd23886bb7ef2f83f3 [diff] |
Clear the current activity in BaseActivityTestRule.after It is odd that BaseActivityTestRule keeps tracking the current activity after finishing it. This patch changes BaseActivityTestRule.after() to call finishActivity() which clears the current activity. The only caller relying on the earlier behavior was DisplayCutoutTestRule that accessed the current activity to decide whether to remove an observer registered to it (crrev.com/c/2522607). This patch fixes the issue in a better way by removing the observer before finishing the activity. Bug: b/356743945 Change-Id: If4167aa87edb7b89801cfb9af2647eaf2d0094e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5875239 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Shuhei Takahashi <nya@chromium.org> Reviewed-by: Wenyu Fu <wenyufu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1359141}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.