Refactor pooling logic into a helper method
Disable pooling when there are cert errors.
Disable pooling when pinning does not match for the new host.

BUG=398925

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

Cr-Commit-Position: refs/heads/master@{#289433}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289433 0039d316-1c4b-4281-b951-d872f2087c98
16 files changed