[floc] Integrate floc-accessible-since for floc computation and invalidation
Use floc-accessible-since to bound the history query time range (in addition to 7-days-ago-from-now). floc-accessible-since represents the point in time from which history is eligible to be used when calculating a user's floc id. It will be reset to base::Time::Now() when a user clears all cookies, or when the browser restarts with "Clear on exit" enabled. When the floc-accessible-since is updated to be greater than the begin time of the history used to compute the current floc, invalidate the current floc. This could happen at the browser startup, or during a browser session when getting an explicit notification. We only invalidate the floc rather than recomputing, because we don't want the floc to change more frequently than the scheduled update rate. Bug: 1157383 Change-Id: I60708820b353ae3c30be6eb34fe0596a6080003f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617622 Commit-Queue: Yao Xiao <yaoxia@chromium.org> Reviewed-by:Charlie Harrison <csharrison@chromium.org> Cr-Commit-Position: refs/heads/master@{#842632}
Showing
Please register or sign in to comment