| Index: net/http/transport_security_state.cc
|
| diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
|
| index e77c8c5e2138a4688a03a9d76047d9235e88dbc4..8eb29434f8631bdf60c4a99aa2bc91d29fed0429 100644
|
| --- a/net/http/transport_security_state.cc
|
| +++ b/net/http/transport_security_state.cc
|
| @@ -1100,6 +1100,25 @@ 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::GetStaticExpectCTState(
|
| const std::string& host,
|
| ExpectCTState* expect_ct_state) const {
|
|
|