commit | 9191418709bbb80f09da6ac6ee1225fb61c73093 | [log] [tgz] |
---|---|---|
author | Calder Kitagawa <ckitagawa@chromium.org> | Thu Aug 22 18:25:18 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 22 18:25:18 2024 |
tree | 1bc9c697499db63ac4357314a4ec29e3fe532ba2 | |
parent | 8ad849e91c7f62c5d2089fa2abec4a38d2dd2072 [diff] |
[Tab Switcher] improve state action unbind logic Use a single for loop over WritableObjectPropertyKey and special case IS_SELECTED to avoid the two huge if/else blocks. In future we might need more special cases if non object keys are used, but this looks a lot cleaner. Change-Id: Ice5442f3e5bb58516d1259365267882752891e44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5804628 Reviewed-by: Brandon Wylie <wylieb@google.com> Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1345556}
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.