Only reset stored certificate exceptions on schemes that are cryptographic.
Only reset stored certificate exceptions on schemes that are cryptographic.

If the user had previously accepted a certificate error for a given host, and then encounters a good certificate on that host, the exception will be reset (revoked), so that the user will be prompted the next time a bad certificate is encountered. However, because this SSLPolicy method is called for all loads (including non-SSL loads), loading an HTTP resource w/o error would be treated as if a good certificate was encountered, and (incorrectly) reset the exceptions. Instead, only reset the exceptions when the scheme for the good load is cryptographic (e.g. https, wss), since those are the only schemes that can deliver good certificates.

BUG=473390
R=rsleevi@chromium.org, jww@chromium.org

Review URL: https://codereview.chromium.org/1249703004

Cr-Commit-Position: refs/heads/master@{#339985}
(cherry picked from commit 597c8d6d5fdb0b93506a41715c8744783cfd5ba8)

Review URL: https://codereview.chromium.org/1252383007 .

Cr-Commit-Position: 62bea078bfe806fd4d8dc2d3869914b6c8093498@{#221}
Cr-Branched-From: ef8f355264e75087b06072b03d328c50bf72843a@{#338390}

hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk