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..5d03bb54f7e1b04368ab24ea71ce938f03975d9e 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 can BitReader.seek(0) will return false. |
xunjieli
2017/06/30 19:12:18
Ryan, I had to update the code to not DCHECK(false
|
return false; |
} |