Chromium Code Reviews| Index: net/http/transport_security_state.cc |
| diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc |
| index 8eb29434f8631bdf60c4a99aa2bc91d29fed0429..4475b0df04dcc2110d572a319b0be90a05a4a578 100644 |
| --- a/net/http/transport_security_state.cc |
| +++ b/net/http/transport_security_state.cc |
| @@ -1009,18 +1009,9 @@ void TransportSecurityState::ReportUMAOnPinFailure(const std::string& host) { |
| // static |
| bool TransportSecurityState::IsBuildTimely() { |
| - // If the build metadata aren't embedded in the binary then we can't use the |
| - // build time to determine if the build is timely, return true by default. If |
| - // we're building an official build then keep using the build time, even if |
| - // it's invalid it'd be a date in the past and this function will return |
| - // false. |
| -#if defined(DONT_EMBED_BUILD_METADATA) && !defined(OFFICIAL_BUILD) |
|
agl
2016/01/29 21:46:46
ditto.
|
| - return true; |
| -#else |
| const base::Time build_time = base::GetBuildTime(); |
| // We consider built-in information to be timely for 10 weeks. |
| return (base::Time::Now() - build_time).InDays() < 70 /* 10 weeks */; |
| -#endif |
| } |
| bool TransportSecurityState::CheckPublicKeyPinsImpl( |