Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1456)

Unified Diff: components/omnibox/browser/omnibox_view.cc

Issue 2031813002: alternative to https://codereview.chromium.org/2028933002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/omnibox/browser/omnibox_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « components/omnibox/browser/omnibox_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698