Commit 5ad11b2b authored by pauljensen's avatar pauljensen Committed by Commit Bot

Remove unused TransportSecurityState::IsGooglePinnedHost

R=rch@chromium.org

Review-Url: https://codereview.chromium.org/2914223002
Cr-Commit-Position: refs/heads/master@{#476325}
parent 7fdac9fc
......@@ -1625,25 +1625,6 @@ bool TransportSecurityState::GetStaticDomainState(const std::string& host,
return true;
}
bool TransportSecurityState::IsGooglePinnedHost(const std::string& host) const {
DCHECK(CalledOnValidThread());
if (!IsBuildTimely())
return false;
PreloadResult result;
if (!DecodeHSTSPreload(host, &result))
return false;
if (!result.has_pins)
return false;
if (result.pinset_id >= arraysize(kPinsets))
return false;
return kPinsets[result.pinset_id].accepted_pins == kGoogleAcceptableCerts;
}
bool TransportSecurityState::GetDynamicSTSState(const std::string& host,
STSState* result) {
DCHECK(CalledOnValidThread());
......
......@@ -484,12 +484,6 @@ class NET_EXPORT TransportSecurityState
STSState* sts_result,
PKPState* pkp_result) const;
// Returns true iff there is static (built-in) state for |host| that
// references the Google pins.
// TODO(rch): Remove this temporary gross layering violation once QUIC 32 is
// deployed.
bool IsGooglePinnedHost(const std::string& host) const;
// Returns true and updates |*result| iff |host| has HSTS/HPKP/Expect-CT
// (respectively) state. If multiple entries match |host|, the most specific
// match determines the return value.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment