forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert GeneratedHttpsFirstModePref into a tri-state enum
GeneratedHttpsFirstModePref is used for managing the HTTPS-First Mode setting in the Security settings page. This updates it to match the HttpsFirstModeSettings enum that adds new states besides "disabled" and "fully enabled", and hooks it up to the two HTTPS-First Mode prefs kHttpsOnlyModeEnabled and kHttpsFIrstModeIncognito. This is an initial step towards adding a new Settings UI (when the HttpsFirstModeIcnognito feature flag is enabled) to control the tri-state of HFM (EnabledFull, EnabledIncognito, Disabled). Having the SettingsToggleButton control the underlying numeric setting will make it easier to have both versions of the Settings control use the same underlying generated pref logic. Bug: 1494186 Change-Id: Iae8dc496f786a60fb5d89bcd6f973eafbd5f7739 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5041962 Reviewed-by: Demetrios Papadopoulos <[email protected]> Code-Coverage: [email protected] <[email protected]> Reviewed-by: Mustafa Emre Acer <[email protected]> Commit-Queue: Chris Thompson <[email protected]> Reviewed-by: Rainhard Findling <[email protected]> Cr-Commit-Position: refs/heads/main@{#1227664}
- Loading branch information
1 parent
3b9010d
commit 6e35023
Showing
7 changed files
with
262 additions
and
35 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
Oops, something went wrong.