Chromium Code Reviews| Index: ios/web/shell/view_controller.mm |
| diff --git a/ios/web/shell/view_controller.mm b/ios/web/shell/view_controller.mm |
| index c15bf1cdcb415760877763aa8a707433cee44c9e..5faaaf35b03b8d44b45f58de5ce411f839578d22 100644 |
| --- a/ios/web/shell/view_controller.mm |
| +++ b/ios/web/shell/view_controller.mm |
| @@ -293,11 +293,31 @@ bool UseWKWebView() { |
| - (BOOL)openExternalURL:(const GURL&)url { |
| return NO; |
| } |
| + |
| - (void)presentSSLError:(const net::SSLInfo&)info |
| forSSLStatus:(const web::SSLStatus&)status |
| recoverable:(BOOL)recoverable |
| callback:(SSLErrorCallback)shouldContinue { |
| + UIAlertController* alert = [UIAlertController |
| + alertControllerWithTitle:@"Your connection is not private" |
| + message:nil |
| + preferredStyle:UIAlertControllerStyleActionSheet]; |
| + [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" |
|
kkhorimoto
2015/09/28 21:49:58
s/Cancel/Go Back
Eugene But (OOO till 7-30)
2015/09/28 22:11:05
Done.
|
| + style:UIAlertActionStyleCancel |
| + handler:^(UIAlertAction*) { |
| + shouldContinue(NO); |
| + }]]; |
| + |
| + if (recoverable) { |
| + [alert addAction:[UIAlertAction actionWithTitle:@"Continue" |
| + style:UIAlertActionStyleDefault |
| + handler:^(UIAlertAction*) { |
| + shouldContinue(YES); |
| + }]]; |
| + } |
| + [self presentViewController:alert animated:YES completion:nil]; |
| } |
| + |
| - (void)presentSpoofingError { |
| } |
| - (void)webLoadCancelled:(const GURL&)url { |