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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 2734783007: Update scheme text color in Omnibox only in non-default Security Levels (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698