#endif
#if !BUILDFLAG(IS_ANDROID)This can be "else"?
bool ignore_recent_visibility = false);The default should be `true` for backward compatibility.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
This can be "else"?
Done
The default should be `true` for backward compatibility.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
ExpectCanDiscardEligibleAllReasons(page_node(),pre-existing bug, but can you change this to use `new_page_node` please if that's not too much trouble?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (base::android::device_info::is_desktop() ||The old logic did not check for base::android::device_info::is_desktop().
Is that intended?
| Commit-Queue | +2 |
The old logic did not check for base::android::device_info::is_desktop().
Is that intended?
Yes. I changed it at https://crrev.com/c/7893747
pre-existing bug, but can you change this to use `new_page_node` please if that's not too much trouble?
I will do it in another CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
11 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
refactor: simplify DiscardEligibilityPolicy::CanDiscard
chrome://discards used CanDiscard() with
kNonVisiblePagesUrgentProtectionTime and did not take
kProtectRecentlyVisibleTabDuration into account.
Refactor the main `CanDiscard` method to automatically resolve the
background protection window. This encapsulates the implementation
detail about kNonVisiblePagesUrgentProtectionTime selection and the
Android-specific `ProtectRecentlyVisibleTab` duration logic within the
policy itself. It also replaces the time-delta parameters with a simple
boolean `ignore_recent_visibility` parameter.
This introduced a new `CanDiscardWithCustomRecentVisibilityWindow`
method in `DiscardEligibilityPolicy` to isolate usages that require
custom protection windows, such as `CpuHealthTracker`.
Align `PageDiscardingHelper` by replacing its
`minimum_time_in_background` parameters with `ignore_recent_visibility`,
simplifying its signature since all of its callers either use default or
ignore durations.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |