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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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 | « no previous file | components/omnibox/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | components/omnibox/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698