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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc

Issue 1761183002: color_utils cleanup: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
index 5d3ac9b6d84f9eabc5e4f4c44de3dd6aff36e079..03d15639249e0d4042c3449bcb69a4cc6e29d743 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc
@@ -154,7 +154,7 @@ void BookmarkBarInstructionsView::UpdateColors() {
SkColor bg = theme_provider->GetColor(ThemeProperties::COLOR_TOOLBAR);
SkColor link_color =
GetNativeTheme()->GetSystemColor(ui::NativeTheme::kColorId_LinkEnabled);
- bool link_has_contrast = color_utils::GetContrastRatio(link_color, bg) >=
+ bool link_has_contrast = color_utils::ContrastRatio(link_color, bg) >=
color_utils::kMinimumReadableContrastRatio;
import_link_->SetUnderline(!link_has_contrast);
import_link_->SetEnabledColor(link_has_contrast ? link_color : text_color);

Powered by Google App Engine
This is Rietveld 408576698