commit | 3d963d4cc5c77da967e65f176a3745fc87bb9ec3 | [log] [tgz] |
---|---|---|
author | Shuhei Takahashi <nya@chromium.org> | Tue Oct 01 01:38:12 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 01 01:38:12 2024 |
tree | 8af7158ca21a4dad472dc1617f347e18947d09cb | |
parent | 36f63a773edcc2927b9ad855be255a6bf8af7c47 [diff] |
[Settings] Avoid Instrumentation.startActivitySync We're soon enabling the single-activity mode for the settings UI where a single activity instance is used throughout the settings hierarchy. To avoid launching a new activity while we continue to use intents for user navigation, we set FLAG_ACTIVITY_SINGLE_TOP to intents if the single-activity mode is enabled. Currently site settings tests use SiteSettingsTestUtil that calls Instrumentation.startActivitySync to start the settings activity, but unfortunately it hangs for an intent with FLAG_ACTIVITY_SINGLE_TOP because it does not start a new activity. This patch changes SiteSettingsTestUtil to use Context.startActivity() instead, combined together with ApplicationTestUtils.waitForActivityClass to wait for the activity to be resumed. Bug: b/356743945 Change-Id: I84731d8599872b1729f6779c358173449f4fb9b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5874682 Commit-Queue: Shuhei Takahashi <nya@chromium.org> Reviewed-by: Christian Dullweber <dullweber@chromium.org> Cr-Commit-Position: refs/heads/main@{#1362142}
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.