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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 2035153002: Revert of [Mac][Material Design] Bring Omnibox stroke and MD colors up to spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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/cocoa/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index 8d0b30ff0e73b8bc272a6f9d66c6e450040db361..c8aedec6ccff2c94107ab6326820efd5292eb0b6 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -574,17 +574,7 @@
if (in_dark_mode) {
vector_icon_color = SK_ColorWHITE;
} else {
- security_state::SecurityStateModel::SecurityLevel security_level =
- GetToolbarModel()->GetSecurityLevel(false);
- if (security_level == security_state::SecurityStateModel::NONE) {
- vector_icon_color = OmniboxViewMac::BaseTextColorSkia(in_dark_mode);
- } else {
- NSColor* sRGBColor =
- OmniboxViewMac::GetSecureTextColor(security_level, in_dark_mode);
- NSColor* deviceColor =
- [sRGBColor colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
- vector_icon_color = skia::NSDeviceColorToSkColor(deviceColor);
- }
+ vector_icon_color = OmniboxViewMac::BaseTextColorSkia(in_dark_mode);
}
}

Powered by Google App Engine
This is Rietveld 408576698