commit | fcadaf152de89129493ccee087e0fb67f0a4fa2a | [log] [tgz] |
---|---|---|
author | Lijin Shen <lazzzis@google.com> | Wed May 18 21:10:46 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 18 21:10:46 2022 |
tree | 3678ec8117df42ff8d1dbbc618c5ff2e2d56cc07 | |
parent | e799344f048a8e4c1e7d008aca455042d1c497b1 [diff] |
Reland "Refactor return-to-home to use new Back Press API" Reland: Set a default value for the back press handler during initialization so that it will not be null by default. Some tests are asserting that should not be null and query back press state before layout / tab model is updated. If a tab is opened from start surface and the tab is unable to be navigated back further, then the back press should trigger the overview/start surface when back press is performed. The new handler listens to layout state change and tab selected change to know if the selected tab meets the requirements above. Bug: 1279941, 1326497 Change-Id: Ie3ad99563660c73c507be25ae5ee2898da547c29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3652242 Reviewed-by: Xi Han <hanxi@chromium.org> Commit-Queue: Lijin Shen <lazzzis@google.com> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Cr-Commit-Position: refs/heads/main@{#1004965}
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.