Adjust last_visibility_change_time implementation
In this CL, last_visibility_change_time is set to NowTicks() in the constructor. In addition, it is updated prior to notifying observers. This is done so that in proactive tab discarding, when a LifecycleUnit becomes HIDDEN, TabManager knows when it became HIDDEN (now), not the last time it became VISIBLE. Bug: 77564 Change-Id: Ie909b4a884a7d70b5f542be7588e9fa03eb2fec7 Reviewed-on: https://chromium-review.googlesource.com/1020444 Commit-Queue: Varun Mohan <varunmohan@google.com> Reviewed-by:François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#552409}
Showing
Please register or sign in to comment