-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Start] Use last visible time for showing Start at startup.
Logged the last background time synchronously was added in https://crrev.com/c/3964629. However, the sync call causes an increase of ANRs. In this CL, we remove the sync call, and record "the last time when Chrome was showing in foreground" instead of "the last time when Chrome went to background or closed". This allows to record the time stamp asynchronously and isn't get lost due to shutdown. This would slightly showing Start more frequently comparing with using the last background time though. Bug: 1410604 Change-Id: Idcc2f00ea23d7b4a74a6dc11b29d6356f19c067d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198974 Reviewed-by: Ted Choc <tedchoc@chromium.org> Reviewed-by: Brandon Wylie <wylieb@chromium.org> Reviewed-by: Yaron Friedman <yfriedman@chromium.org> Reviewed-by: Weilun Shi <sweilun@chromium.org> Commit-Queue: Xi Han <hanxi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1100749}
- Loading branch information
Xi Han
authored and
Chromium LUCI CQ
committed
Feb 3, 2023
1 parent
d198df2
commit 4cec916
Showing
7 changed files
with
152 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.