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

Unified Diff: ios/web/web_state/wk_web_view_security_util.mm

Issue 2061103003: Updates WKWebViewSecurityUtil to handle deprecated enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/wk_web_view_security_util.mm
diff --git a/ios/web/web_state/wk_web_view_security_util.mm b/ios/web/web_state/wk_web_view_security_util.mm
index b927e676edfcd85b8896d800a6c88d512afb15ad..5836fab7bedb1e82103805e815a5d325ac121e43 100644
--- a/ios/web/web_state/wk_web_view_security_util.mm
+++ b/ios/web/web_state/wk_web_view_security_util.mm
@@ -139,9 +139,15 @@ SecurityStyle GetSecurityStyleFromTrustResult(SecTrustResultType result) {
case kSecTrustResultFatalTrustFailure:
case kSecTrustResultOtherError:
return SECURITY_STYLE_AUTHENTICATION_BROKEN;
+
+ // TODO(crbug.com/619982): This default clause exists because
+ // kSecTrustResultConfirm was deprecated in iOS7, but leads to a compile
+ // error if used with newer SDKs. Remove the default clause once this
+ // switch statement successfully compiles without kSecTrustResultConfirm.
+ default:
+ NOTREACHED();
+ return SECURITY_STYLE_UNKNOWN;
}
- NOTREACHED();
- return SECURITY_STYLE_UNKNOWN;
}
} // namespace web
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698