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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm

Issue 2692173002: Update the Bling omnibox to be aware of HTTP_SHOW_WARNING and use ShouldAlwaysShowIcon(). (Closed)
Patch Set: Update the Bling omnibox to be aware of HTTP_SHOW_WARNING and use ShouldAlwaysShowIcon(). Created 3 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
« no previous file with comments | « ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm b/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm
index 47bf4aebde093f33a43e9ae01a3fd16b7527d748..31e498d8240a2cce529dc33574e15174768db959 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm
+++ b/ios/chrome/browser/ui/omnibox/omnibox_view_ios.mm
@@ -656,6 +656,7 @@ NSAttributedString* OmniboxViewIOS::ApplyTextAttributes(
UIColor* color = nil;
switch (controller_->GetToolbarModel()->GetSecurityLevel(false)) {
case security_state::NONE:
+ case security_state::HTTP_SHOW_WARNING:
break;
case security_state::SECURITY_WARNING:
// Don't color strikethrough schemes. See https://crbug.com/635004#c6
@@ -678,7 +679,6 @@ NSAttributedString* OmniboxViewIOS::ApplyTextAttributes(
value:[NSNumber numberWithInteger:NSUnderlineStyleSingle]
range:ComponentToNSRange(scheme)];
break;
- case security_state::HTTP_SHOW_WARNING:
case security_state::SECURE_WITH_POLICY_INSTALLED_CERT:
NOTREACHED();
}
« no previous file with comments | « ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698