Chromium Code Reviews| Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| index 689b651ed518fc723481d9294126be3eee28c176..885da389cf09cdd82d402a476f9ba06a14eef889 100644 |
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
| @@ -574,6 +574,9 @@ void OmniboxViewViews::SetEmphasis(bool emphasize, const gfx::Range& range) { |
| void OmniboxViewViews::UpdateSchemeStyle(const gfx::Range& range) { |
| DCHECK(range.IsValid()); |
| + // Scheme color is only overridden for non-default security levels. |
|
Peter Kasting
2017/03/08 03:05:44
Mac also does this check. Maybe we should pass th
elawrence
2017/03/08 17:23:03
I've updated the comment.
Passing the security l
|
| + if (security_level_ == security_state::NONE) |
| + return; |
| const SkColor security_color = |
| location_bar_view_->GetSecureTextColor(security_level_); |
| const bool strike = security_level_ == security_state::DANGEROUS; |