Refactor generation of SSL certificate dialogs

The SSL certificate dialog is shown in two cases ...
- When an SSL error occurrs when loading a resource
- For the 'Page Info' menu option when the main page uses SSL.

This change factors out common functionality into a new
createSslCertificateDialog() method.

It also removes a superfluous check in showPageInfo().

Bug: 5248376
Change-Id: I2ce57b2becfb7e9498f7b955b6e65feeb2fa1c19
1 file changed