Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
index cd06a907fbd2f11d2da8c7f15a567cd5eb8ef2a3..c359729c9333cc3b65dd9cb1ffc5b7d4bfe77f5e 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -338,7 +338,7 @@ SkColor LocationBarView::GetColor( |
case EV_BUBBLE_TEXT_AND_BORDER: |
return ui::MaterialDesignController::IsModeMaterial() |
? GetSecureTextColor( |
- GetToolbarModel()->GetSecurityLevel(false)) |
+ security_state::SecurityStateModel::EV_SECURE) |
: SkColorSetRGB(7, 149, 0); |
} |
NOTREACHED(); |
@@ -865,7 +865,7 @@ void LocationBarView::RefreshLocationIcon() { |
if (ui::MaterialDesignController::IsModeMaterial()) { |
const int kIconSize = 16; |
security_state::SecurityStateModel::SecurityLevel security_level = |
- GetToolbarModel()->GetSecurityLevel(false); |
+ omnibox_view_->GetSecurityLevelForDisplay(); |
SkColor icon_color = |
(security_level == security_state::SecurityStateModel::NONE) |
? color_utils::DeriveDefaultIconColor(GetColor(TEXT)) |
@@ -1048,7 +1048,7 @@ bool LocationBarView::ShouldShowKeywordBubble() const { |
} |
bool LocationBarView::ShouldShowEVBubble() const { |
- return (GetToolbarModel()->GetSecurityLevel(false) == |
+ return (omnibox_view_->GetSecurityLevelForDisplay() == |
security_state::SecurityStateModel::EV_SECURE); |
} |