-
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.
[DBSC] Session registration in BoundSessionCookieRefreshService
This CL adds a new RegisterNewBoundSession() method to BoundSessionCookieRefreshService which allows registering a new bound session after fininsing the explicit registration flow. For now, BoundSessionCookieRefreshServiceImpl supports two modes: 1. Bound session state is tied to the Chrome sign-in state. 2. Bound session can be started explicitly and is independent from the Chrome sign-in state. Mode 2 is put behind a feature flag and should replace mode 1 once the registration flow is implemented. Session parameters are stored on disk to remember the bound session state across browser restarts. The parameters are stored in .proto format in profile prefs. Proto format has the following advantages: + Supports structured and typed messages. + No need to write custom serialization code to store a message on disk. + New optional fields can be added without breaking backwards compatibility. Bug: b/286222327 Change-Id: I74140d9b650e5a0b3896256a9fbcb9af4b664a9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4604501 Reviewed-by: Kristian Monsen <kristianm@chromium.org> Reviewed-by: Monica Basta <msalama@chromium.org> Commit-Queue: Alex Ilin <alexilin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1158729}
- Loading branch information
Alex Ilin
authored and
Chromium LUCI CQ
committed
Jun 16, 2023
1 parent
fb75aef
commit 1c12e91
Showing
9 changed files
with
260 additions
and
33 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
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.