commit | 3b1795b41cb8fcb809449ee4b78ec28a59fe2749 | [log] [tgz] |
---|---|---|
author | ginnnnnnny <ginnyhuang@chromium.org> | Wed Nov 13 17:51:26 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 13 17:51:26 2024 |
tree | 85ebdcc3175d41389aed81e7c4f7561fcacf2327 | |
parent | 541627730ba0a71e9f83dfb88a3972a32b91a44b [diff] |
[iOS] Refactor usages for ShouldPutMostVisitedSitesInMagicStack (1/3) `ShouldPutMostVisitedSitesInMagicStack()` will soon become `ShouldPutMostVisitedSitesInMagicStack(FeedActivityBucket bucket)`, and `bucket` will be retrieved using from PrefServices. Also, the bucket value may change when a user is browsing NTP. This CL removes usages of `ShouldPutMostVisitedSitesInMagicStack()` from view controllers and views managed by `MagicStackModuleContainer`. Instead of checking the feature method, now it checks whether any magic stack module and/or tile view is a subview of the magic stack (as opposed to ContentSuggestionsViewCon- troller) to determine the layout. This will also make the code easier to expand in the future. Bug: 377587259 Change-Id: Ie5ca0f46b8ca3debb33da109b262c4e595b21b79 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6011565 Commit-Queue: Ginny Huang <ginnyhuang@chromium.org> Reviewed-by: Scott Yoder <scottyoder@google.com> Cr-Commit-Position: refs/heads/main@{#1382432}
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.