-
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.
Simplify implementation of Profile Selection with Guest Profile
Since the approach is different than the System Profile, we will not be able to perform the same experiment that allows us to change the default value (for creation of the service or not) directly on all factories. Therefore, removed `kGuestProfileSelectionDefaultNone` feature flag. Default value for Guest Profile is now `ProfileSelection::kNone`. All existing factories kept the same old behavior by using experimental Profile Selection builders that have a `force_guest` value to force the value to be the same as the one for the Regular Profile, which was the previous default behavior. For existing factories that use explicit `ProfileSelections::Builder` but relied on the previous default value we do the following (`WithGuest() not set): - if Regular Profile value is overwritten: explicitly set the same value for Guest Profile. - if Regular Profile value is not set, explicitly set the Regular Profile default value `ProfileSelections::kRegularProfileDefault` for the Guest Profile. Future factories should not use experimental builders and rely on explicitly stating the behavior for the Guest profile if different than `ProfileSelection::kNone`. Transition to stop creating existing services for the Guest Profile can start by setting the force_guest value to false on experimental builders. Potentially a feature flag can be introduced for services where the decision is not clear. Bug: 1284664 Change-Id: I032244842a155208064e12a0e8261137a8fb5ddc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4235132 Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Reviewed-by: David Roger <droger@chromium.org> Commit-Queue: Ryan Sultanem <rsult@google.com> Cr-Commit-Position: refs/heads/main@{#1104984}
- Loading branch information
Ryan Sultanem
authored and
Chromium LUCI CQ
committed
Feb 14, 2023
1 parent
1458435
commit 1020b04
Showing
21 changed files
with
134 additions
and
159 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
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
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.