Omnibox: Expose IsSecurityInfoInitialized() method in LocationBarModel
For Query in Omnibox, we want to avoid the URL flicker while the page
is navigating and the TLS security state has not been initialized.
This currently works on Android implementation by toggling a boolean
flag on navigation and TLS state update.
However, this duplicates a piece of state that's already
authoritatively stored within the VisibleSecurityState.
This CL:
1. Exposes an IsSecurityInfoInitialized() method on LocationBarModel
2. Updates the security_state::SecurityInfo struct to add a
connection_info_initialized flag that's already present in
security_state::VisibleSecurityState.
3. Updates LocationBarModelDelegate to provide a general
GetSecurityInfo method.
Planned followup work:
1. Make Query in Omnibox actually use the IsSecurityInfoInitialized
flag.
2. Use LocationBarModelDelegate::GetSecurityInfo to remove some
now-redundant methods such as FailsBillingCheck and
FailsMalwareCheck.
Bug: 874592
Change-Id: I648b30859ec40bb741de1c31378e0a6cd8baeeaa
Reviewed-on: https://chromium-review.googlesource.com/c/1324879Reviewed-by:
Adrienne Porter Felt <felt@chromium.org>
Reviewed-by:
Christopher Thompson <cthomp@chromium.org>
Reviewed-by:
Scott Violet <sky@chromium.org>
Commit-Queue: Tommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607296}
Showing
Please register or sign in to comment