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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_util.cc

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. Created 4 years, 1 month 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/omnibox_util.h ('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_util.cc
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_util.cc b/ios/chrome/browser/ui/omnibox/omnibox_util.cc
index 1fa7c4a6bdd8143dcf1b00c2842311ff786f974a..9c19783510d64f70ceff4cfa61a4d4675134b0ce 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_util.cc
+++ b/ios/chrome/browser/ui/omnibox/omnibox_util.cc
@@ -49,21 +49,20 @@ int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type,
}
}
-int GetIconForSecurityState(
- security_state::SecurityStateModel::SecurityLevel security_level) {
+int GetIconForSecurityState(security_state::SecurityLevel security_level) {
switch (security_level) {
- case security_state::SecurityStateModel::NONE:
- case security_state::SecurityStateModel::HTTP_SHOW_WARNING:
+ case security_state::NONE:
+ case security_state::HTTP_SHOW_WARNING:
return IDR_IOS_OMNIBOX_HTTP;
- case security_state::SecurityStateModel::EV_SECURE:
- case security_state::SecurityStateModel::SECURE:
+ case security_state::EV_SECURE:
+ case security_state::SECURE:
return IDR_IOS_OMNIBOX_HTTPS_VALID;
- case security_state::SecurityStateModel::SECURITY_WARNING:
+ case security_state::SECURITY_WARNING:
// Surface Dubious as Neutral.
return IDR_IOS_OMNIBOX_HTTP;
- case security_state::SecurityStateModel::SECURE_WITH_POLICY_INSTALLED_CERT:
+ case security_state::SECURE_WITH_POLICY_INSTALLED_CERT:
return IDR_IOS_OMNIBOX_HTTPS_POLICY_WARNING;
- case security_state::SecurityStateModel::DANGEROUS:
+ case security_state::DANGEROUS:
return IDR_IOS_OMNIBOX_HTTPS_INVALID;
}
}
« no previous file with comments | « ios/chrome/browser/ui/omnibox/omnibox_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698