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

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

Issue 2362523003: Add (some) password detection for HTTP-bad (Closed)
Patch Set: trigger the downgrade from OnPasswordFormsParsed Created 4 years, 2 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 7e690e9a1e2321daf6a94a1d8cd3b928410c3030..3d36ab210a7dff4291962d9524a459f2e1300723 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
@@ -720,8 +720,10 @@ SkColor LocationBarViewMac::GetLocationBarIconColor() const {
security_state::SecurityStateModel::SecurityLevel security_level =
GetToolbarModel()->GetSecurityLevel(false);
- if (security_level == security_state::SecurityStateModel::NONE)
+ if (security_level == security_state::SecurityStateModel::NONE ||
+ security_level == security_state::SecurityStateModel::HTTP_SHOW_WARNING) {
return gfx::kChromeIconGrey;
+ }
NSColor* srgb_color =
OmniboxViewMac::GetSecureTextColor(security_level, in_dark_mode);

Powered by Google App Engine
This is Rietveld 408576698