| Index: components/omnibox/browser/omnibox_view.cc
|
| diff --git a/components/omnibox/browser/omnibox_view.cc b/components/omnibox/browser/omnibox_view.cc
|
| index cc88e37f71a508b48448853bc7f890915e5e3ddc..54f088e12b3208c8a06395cf88f30c849c245c87 100644
|
| --- a/components/omnibox/browser/omnibox_view.cc
|
| +++ b/components/omnibox/browser/omnibox_view.cc
|
| @@ -73,6 +73,13 @@ void OmniboxView::OpenMatch(const AutocompleteMatch& match,
|
| OnMatchOpened(match_type);
|
| }
|
|
|
| +security_state::SecurityStateModel::SecurityLevel
|
| +OmniboxView::GetSecurityLevelForDisplay() const {
|
| + return IsEditingOrEmpty()
|
| + ? security_state::SecurityStateModel::NONE
|
| + : controller_->GetToolbarModel()->GetSecurityLevel(false);
|
| +}
|
| +
|
| bool OmniboxView::IsEditingOrEmpty() const {
|
| return (model_.get() && model_->user_input_in_progress()) ||
|
| (GetOmniboxTextLength() == 0);
|
|
|