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

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

Issue 2096973002: [ios] Do not show SSL interstitial if cert is absent or cannot be parsed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unittest 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 | « ios/web/web_state/error_translation_util.h ('k') | ios/web/web_state/error_translation_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/error_translation_util.mm
diff --git a/ios/web/web_state/error_translation_util.mm b/ios/web/web_state/error_translation_util.mm
index 85986d4689979d9569ff9f4fd8afac92a654b489..4ac934b918358114b0909de73e7e7fb280b45952 100644
--- a/ios/web/web_state/error_translation_util.mm
+++ b/ios/web/web_state/error_translation_util.mm
@@ -157,7 +157,11 @@ NSError* NetErrorFromError(NSError* error) {
// corresponding net error codes.
GetNetErrorFromIOSErrorCode(underlying_error.code, &net_error_code);
}
+ return NetErrorFromError(error, net_error_code);
+}
+NSError* NetErrorFromError(NSError* error, NSInteger net_error_code) {
+ DCHECK(error);
NSString* net_error_domain =
[NSString stringWithUTF8String:net::kErrorDomain];
NSError* net_error = [NSError errorWithDomain:net_error_domain
« no previous file with comments | « ios/web/web_state/error_translation_util.h ('k') | ios/web/web_state/error_translation_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698