commit | ec2cf5ace9c89dd53d98f1b3dcdbc83edb902d66 | [log] [tgz] |
---|---|---|
author | Shuhei Takahashi <nya@chromium.org> | Wed Sep 18 01:04:34 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 18 01:04:34 2024 |
tree | b327f09d2de37bb553192b3487b31a2f28bec2ba | |
parent | ca17308a86acfc085298eb52dc68afbd24949e65 [diff] |
[Settings] No BackPressHandler for embeddable fragments Today, the only settings fragment that implements BackPressHandler is PrivacyGuideFragment that is standalone. Since it needs a bit of code to support BackPressHandler for embeddable fragments while there is no real use case yet, this patch explicitly unsupports it. The only change to non-test code is to insert an assertion in SettingsActivity. The rest of the change are in test code; particularly, using TestStandaloneFragment to test BackPressHandler after extending it to align with TestSettingsFragment, and using SettingsIntentUtil consistently to construct intents to correctly set the standalone bit. Bug: b/356743945 Change-Id: I9c12790db4af9c4aa774a486fe09f0857bad76c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5869711 Commit-Queue: Shuhei Takahashi <nya@chromium.org> Reviewed-by: Sirisha Kavuluru <skavuluru@google.com> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Cr-Commit-Position: refs/heads/main@{#1356844}
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.