-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M110] breadcrumbs: fix previous session event overrun
BreadcrumbManager's event log can grow unbounded if the events added by SetPreviousSessionEvents make it become oversized. This change adds logic to SetPreviousSessionEvents to ensure it does not make the event log grow past its max size. This change also adds tests to prevent similar issues from happening in the future. (cherry picked from commit ee93e9c) Bug: 1405018 Change-Id: I31b53823dbae8c89eabf6fe62ce9b7432c03a982 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158873 Commit-Queue: Jesse McKenna <jessemckenna@google.com> Reviewed-by: David Bienvenu <davidbienvenu@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1091960} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4204728 Cr-Commit-Position: refs/branch-heads/5481@{#808} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information
1 parent
80fa229
commit c260741
Showing
2 changed files
with
68 additions
and
1 deletion.
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