DescriptionFix CookieMonster garbage collection when no insecure cookies.
The code wanted to always keep at least one insecure cookie
around, so it could get the earliest access time of that cookie to
update earliest_access_time_, but when there weren't any such cookies,
this broke rather badly.
That logic for calculating the earliest_access_time_ was also wrong,
since it was set either only based on secure cookies, or only based
on insecure cookies.
This CL fixes both those issues.
BUG=730000
Review-Url: https://codereview.chromium.org/2924933002
Cr-Commit-Position: refs/heads/master@{#477689}
Committed: https://chromium.googlesource.com/chromium/src/+/f4721d99f41f62c860b20f1cd53911bdd069d338
Patch Set 1 #
Total comments: 3
Patch Set 2 : Update comment #Patch Set 3 : Oops #
Messages
Total messages: 17 (9 generated)
|