Index: net/http/transport_security_state.cc |
diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc |
index d4d6f495199460c4af336f05ba4f5c5b3649a278..acbd07bae91394cd7ad429771d22928216490107 100644 |
--- a/net/http/transport_security_state.cc |
+++ b/net/http/transport_security_state.cc |
@@ -639,8 +639,8 @@ bool DecodeHSTSPreloadRaw(const std::string& search_hostname, |
bool DecodeHSTSPreload(const std::string& hostname, PreloadResult* out) { |
bool found; |
if (!DecodeHSTSPreloadRaw(hostname, &found, out)) { |
- DCHECK(false) << "Internal error in DecodeHSTSPreloadRaw for hostname " |
- << hostname; |
+ // This can happen when INCLUDE_TRANSPORT_SECURITY_STATE_PRELOAD_LIST is |
+ // false, in which case BitReader.seek(0) will return false. |
Ryan Sleevi
2017/07/07 16:45:13
Could you explain the rationale for doing this cha
xunjieli
2017/07/10 22:20:40
Done. That's very neat. Thank you for the suggesti
|
return false; |
} |